Module zut.files
File and directory operations, compatible with both the local file system and Samba/Windows shares.
Functions
|
Archivate path to archive_dir directory, ensuring unique archive name. |
|
|
|
Copy file data and file data and file's permission mode (which on Windows is only the read-only flag). |
|
Identical to copy() except that copy2() also attempts to preserve the file metadata. |
|
Copy the contents (no metadata) in the most efficient way possible. |
|
Copy the permission bits from src to dst. |
|
Copy the read-only attribute, last access time, and last modification time from src to dst. |
|
Recursively copy a directory tree rooted at src to a directory named dst and return the destination directory. |
|
|
|
|
|
Return the given path from within the given directory if any, relative to the current directory. |
|
|
|
|
|
|
|
|
|
Open the file in bytes mode, read it, and close the file. |
|
Open the file in text mode, read it, and close the file. |
|
|
|
|
|
|
|
|
|
Open the file in bytes mode, write to it, and close the file. |
|
Open the file in text mode, write to it, and close the file. |