-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to put a file to a directory in LocalFileSystem #967
Comments
I wonder, does |
Yes, |
Would you consider making a PR in which
forLocalFileSystem to simplify things? |
Ok, I will try. |
This was fixed by #1148. Test code from above: from fsspec.implementations.local import LocalFileSystem
fs = LocalFileSystem()
fs.mkdir('/tmp/test_dir0')
fs.mkdir('/tmp/test_dir1')
with open('/tmp/test_dir0/a', 'w') as fp:
fp.write('test')
fs.put('/tmp/test_dir0/a', '/tmp/test_dir1/')
print(fs.find('/tmp/test_dir1')) produces output
as expected. |
Nice to see all these closed! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried to copy a file to another directory with the put function of LocalFileSystem, the code is
but I get an Error traceback like this:
However the doc of put tell me that
I guess directory is supported by design, so is it a bug?
The text was updated successfully, but these errors were encountered: