toil.lib.ftp_utils¶
Attributes¶
Classes¶
FTP access with upload. |
Module Contents¶
- toil.lib.ftp_utils.logger¶
- class toil.lib.ftp_utils.FtpFsAccess(cache=None)[source]¶
FTP access with upload.
Taken and modified from https://github.com/ohsu-comp-bio/cwl-tes/blob/03f0096f9fae8acd527687d3460a726e09190c3a/cwl_tes/ftp.py#L37-L251
- Parameters:
cache (Optional[dict[Any, ftplib.FTP]])
- cache¶
- netrc = None¶
- exists(fn)[source]¶
Check if a file/directory exists over an FTP server :param fn: FTP url :return: True or false depending on whether the object exists on the server
- isfile(fn)[source]¶
Check if the FTP url points to a file :param fn: FTP url :return: True if url is file, else false
- isdir(fn)[source]¶
Check if the FTP url points to a directory :param fn: FTP url :return: True if url is directory, else false