daklib.fstransactions¶
Transactions for filesystem actions
Classes
transactions for filesystem actions |
- class daklib.fstransactions.FilesystemTransaction[source]¶
transactions for filesystem actions
- copy(source: str, destination: str, link: bool = False, symlink: bool = False, mode: Optional[int] = None) None [source]¶
copy source to destination
- Parameters:
source – source file
destination – destination file
link – try hardlinking, falling back to copying
symlink – create a symlink instead of copying
mode – permissions to change destination to
- create(path: str, mode: Optional[int] = None, text: bool = True) IO [source]¶
create filename and return file handle
- Parameters:
path – file to create
mode – permissions for the new file
text – open file in text mode
- Returns:
file handle of the new file
- class daklib.fstransactions._FilesystemCopyAction(source, destination, link=True, symlink=False, mode=None)[source]¶
-
- property temporary_name¶