Commit d68fcee0 by willmcgugan

Fixed an issue caused by change to getsyspath

parent 4d59bcde
...@@ -18,8 +18,8 @@ def copyfile(src_fs, src_path, dst_fs, dst_path, chunk_size=16384): ...@@ -18,8 +18,8 @@ def copyfile(src_fs, src_path, dst_fs, dst_path, chunk_size=16384):
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) or ""
dst_syspath = dst_fs.getsyspath(dst_path, default="") dst_syspath = dst_fs.getsyspath(dst_path) or ""
# System copy if there are two sys paths # System copy if there are two sys paths
if src_syspath and dst_syspath: if src_syspath and dst_syspath:
...@@ -57,8 +57,8 @@ def movefile(src_fs, src_path, dst_fs, dst_path, chunk_size=16384): ...@@ -57,8 +57,8 @@ def movefile(src_fs, src_path, dst_fs, dst_path, chunk_size=16384):
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) or ""
dst_syspath = dst_fs.getsyspath(dst_path, default="") dst_syspath = dst_fs.getsyspath(dst_path) or ""
# System copy if there are two sys paths # System copy if there are two sys paths
if src_syspath and dst_syspath: if src_syspath and dst_syspath:
...@@ -244,3 +244,4 @@ if __name__ == "__main__": ...@@ -244,3 +244,4 @@ if __name__ == "__main__":
fs = OSFS('~/duptest') fs = OSFS('~/duptest')
for files in find_duplicates(fs, quick=False): for files in find_duplicates(fs, quick=False):
print files print files
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