cwltest.stdfsaccess

Abstracted IO access.

Classes

StdFsAccess

Local filesystem implementation.

Functions

abspath(src, basedir)

Determine local filesystem absolute path given a basedir, handling both plain paths and URIs.

Module Contents

cwltest.stdfsaccess.abspath(src, basedir)

Determine local filesystem absolute path given a basedir, handling both plain paths and URIs.

Parameters:
Return type:

str

class cwltest.stdfsaccess.StdFsAccess(basedir)

Local filesystem implementation.

Parameters:

basedir (str)

basedir
open(fn, mode)

Open a file from a file: URI.

Parameters:
Return type:

IO[Any]

size(fn)

Get the size of the file resource pointed to by a URI.

Parameters:

fn (str)

Return type:

int

isfile(fn)

Determine if a resource pointed to by a URI represents a file.

Parameters:

fn (str)

Return type:

bool

isdir(fn)

Determine if a resource pointed to by a URI represents a directory.

Parameters:

fn (str)

Return type:

bool