Commit 064714ca by willmcgugan

Tweaks

parent 44893ed8
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
import shutil import shutil
from mountfs import MountFS from mountfs import MountFS
def copyfile(src_fs, src_path, dst_fs, dst_path, chunk_size=1024*16): def copyfile(src_fs, src_path, dst_fs, dst_path, chunk_size=16384):
"""Copy a file from one filesystem to another. Will use system copyfile, if both files have a syspath. """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. Otherwise file will be copied a chunk at a time.
...@@ -42,8 +42,7 @@ def copyfile(src_fs, src_path, dst_fs, dst_path, chunk_size=1024*16): ...@@ -42,8 +42,7 @@ def copyfile(src_fs, src_path, dst_fs, dst_path, chunk_size=1024*16):
dst.close() dst.close()
def movefile(src_fs, src_path, dst_fs, dst_path, chunk_size=1024*16): def movefile(src_fs, src_path, dst_fs, dst_path, chunk_size=16384):
"""Move a file from one filesystem to another. Will use system copyfile, if both files have a syspath. """Move 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. Otherwise file will be copied a chunk at a time.
...@@ -54,7 +53,6 @@ def movefile(src_fs, src_path, dst_fs, dst_path, chunk_size=1024*16): ...@@ -54,7 +53,6 @@ def movefile(src_fs, src_path, dst_fs, dst_path, chunk_size=1024*16):
chunk_size -- Size of chunks to move if system copyfile is not available (default 16K) chunk_size -- Size of chunks to move if system copyfile is not available (default 16K)
""" """
src_syspath = src_fs.getsyspath(src_path, default="") src_syspath = src_fs.getsyspath(src_path, default="")
dst_syspath = dst_fs.getsyspath(dst_path, default="") dst_syspath = dst_fs.getsyspath(dst_path, default="")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment