parsl.data_provider.files.File¶
-
class
parsl.data_provider.files.
File
(url, dman=None, cache=False, caching_dir='.', staging='direct')[source]¶ The Parsl File Class.
This is planned to be a very simple class that simply captures various attributes of a file, and relies on client-side and worker-side systems to enable to appropriate transfer of files.
-
__init__
(url, dman=None, cache=False, caching_dir='.', staging='direct')[source]¶ Construct a File object from a url string.
- Args:
- url (string) : 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’
- dman (DataManager) : data manager
Methods
__init__
(url[, dman, cache, caching_dir, …])Construct a File object from a url string. get_data_future
(site)set_data_future
(df[, site])stage_in
([site])Transport file from the site of origin to local site. stage_out
()Transport file from local filesystem to origin site. Attributes
filepath
Return the resolved filepath on the side where it is called from. -