parsl.data_provider.files.File

class parsl.data_provider.files.File(url: str)[source]

The Parsl File Class.

This represents the global, and sometimes local, URI/path to a file.

Staging-in mechanisms may annotate a file with a local path recording the path at the far end of a staging action. It is up to the user of the File object to track which local scope that local path actually refers to.

__init__(url: str)[source]

Construct a File object from a url string.

Parameters:url (-) – url string of the file e.g. - ‘input.txt’ - ‘file:///scratch/proj101/input.txt’ - ‘globus://go#ep1/~/data/input.txt’ - ‘globus://ddb59aef-6d04-11e5-ba46-22000b92c6ec/home/johndoe/data/input.txt’

Methods

__init__(url) Construct a File object from a url string.
File.capitalize
File.casefold
File.center
File.count
File.encode
File.endswith
File.expandtabs
File.find
File.format
File.format_map
File.get_data_future
File.index
File.is_remote
File.isalnum
File.isalpha
File.isdecimal
File.isdigit
File.isidentifier
File.islower
File.isnumeric
File.isprintable
File.isspace
File.istitle
File.isupper
File.join
File.ljust
File.lower
File.lstrip
File.maketrans
File.partition
File.replace
File.rfind
File.rindex
File.rjust
File.rpartition
File.rsplit
File.rstrip
File.set_data_future
File.split
File.splitlines
File.stage_in
File.stage_out
File.startswith
File.strip
File.swapcase
File.title
File.translate
File.upper
File.zfill

Attributes

filepath Return the resolved filepath on the side where it is called from.