You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "temp.py", line 6, in <module>
fs.put('tempdir', 's3://our_bucket/key/', recursive=True)
File "/home/jovyan/temp/venv/lib/python3.7/site-packages/fsspec/asyn.py", line 227, in put
sync(self.loop, self._put, lpaths, rpaths, **kwargs)
File "/home/jovyan/temp/venv/lib/python3.7/site-packages/fsspec/asyn.py", line 51, in sync
raise exc.with_traceback(tb)
File "/home/jovyan/temp/venv/lib/python3.7/site-packages/fsspec/asyn.py", line 35, in f
result[0] = await future
File "/home/jovyan/temp/venv/lib/python3.7/site-packages/fsspec/asyn.py", line 214, in _put
for lpath, rpath in zip(lpaths, rpaths)
File "/home/jovyan/temp/venv/lib/python3.7/site-packages/s3fs/core.py", line 601, in _put_file
with open(lpath, 'rb') as f0:
IsADirectoryError: [Errno 21] Is a directory: '/home/jovyan/temp/tempdir'
And sf3s v0.4 does not.
What you expected to happen:
if recursive=True, all directory contents should be copied to remote.
What happened:
Below code causes an error:
And sf3s v0.4 does not.
What you expected to happen:
if
recursive=True
, all directory contents should be copied to remote.Minimal Complete Verifiable Example:
Anything else we need to know?:
https://github.com/intake/filesystem_spec/blob/66f8bec62c510161b6bd0b93eb0ff143ad34c72f/fsspec/spec.py#L670
put_file
treats directory path, but awaitable "_put_file" doesn't.Environment:
The text was updated successfully, but these errors were encountered: