PyFilesystem / pyfilesystem

Python filesystem abstraction layer
http://pyfilesystem.org/
BSD 3-Clause "New" or "Revised" License
285 stars 63 forks source link

S3: TypeError: move() got an unexpected keyword argument 'overwrite' #215

Closed zopyx closed 8 years ago

zopyx commented 8 years ago

I am getting the following error with fs 0.5.3 and boto 2.38.0 under Python 2.7.X:

  File "/home/ajung/sandboxes/xmldirector.plonecore/xmldirector/plonecore/browser/connector.py", line 287, in rename_collection
    handle.rename(name, new_name)
  File "/home/ajung/.buildout/eggs/fs-0.5.3-py2.7.egg/fs/s3fs.py", line 550, in rename
    self.movedir(src,dst)
  File "/home/ajung/.buildout/eggs/fs-0.5.3-py2.7.egg/fs/base.py", line 1275, in movedir
    movefile(src_filename, dst_filename, overwrite=overwrite, chunk_size=chunk_size)
TypeError: move() got an unexpected keyword argument 'overwrite'
zopyx commented 8 years ago

A wrapper class of ours implemented move() in an inappropriate way.