diff options
author | willmcgugan <willmcgugan@67cdc799-7952-0410-af00-57a81ceafa0f> | 2010-07-10 15:29:54 +0000 |
---|---|---|
committer | willmcgugan <willmcgugan@67cdc799-7952-0410-af00-57a81ceafa0f> | 2010-07-10 15:29:54 +0000 |
commit | fb95d7bef7a67a927bb66d0bfc8598650c05f04f (patch) | |
tree | 147b4384eab2e22779e5cc6e1c4219b27f797e73 /fs/utils.py | |
parent | 8a504419216d4862a948f2dfce3f058aec74d958 (diff) | |
download | pyfilesystem-git-fb95d7bef7a67a927bb66d0bfc8598650c05f04f.tar.gz |
Added better zip exceptions, and added __all__ to core classes
Diffstat (limited to 'fs/utils.py')
-rw-r--r-- | fs/utils.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/utils.py b/fs/utils.py index 83ad832..114c236 100644 --- a/fs/utils.py +++ b/fs/utils.py @@ -4,6 +4,14 @@ The `utils` module provides a number of utility functions that don't belong in t """ +__all__ = ['copyfile', + 'movefile', + 'movedir', + 'copydir', + 'countbytes', + 'find_duplicates', + 'print_fs'] + import shutil import os import sys @@ -12,6 +20,7 @@ from fs.path import pathjoin, pathsplit from fs.errors import DestinationExistsError + def copyfile(src_fs, src_path, dst_fs, dst_path, overwrite=True, chunk_size=16384): """Copy a file from one filesystem to another. Will use system copyfile, if both files have a syspath. Otherwise file will be copied a chunk at a time. |