LocalPath¶
-
class
hep_rfm.
LocalPath
(path)[source]¶ Bases:
hep_rfm.protocols.ProtocolPath
Represent a path to a local file.
Parameters: path (str) – path to save, pointing to a file. Attributes Summary
pid
Methods Summary
copy
(target)Copy the source file to the target using this protocol. mkdirs
()Make directories to the file path within this protocol. Attributes Documentation
-
pid
= 'local'¶
Methods Documentation
-
copy
(target)[source]¶ Copy the source file to the target using this protocol. The target must be accessible.
Parameters: - source (ProtocolPath) – source file to copy.
- target (ProtocolPath) – where to copy the file.
Raises: CopyFileError – if a problem appears while copying the file.
-
mkdirs
()[source]¶ Make directories to the file path within this protocol.
Raises: MakeDirsError – if an error occurs while creating directories.
-