Skip to content

Commit

Permalink
Require latest fsspec for asynclocalfs (#14)
Browse files Browse the repository at this point in the history
* Require latest fsspec for asynclocalfs
* add _{read,write}_{bytes,text} apis
  • Loading branch information
skshetry authored Oct 19, 2022
1 parent 411aae3 commit 7128c74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ install_requires=
memfs =
pygtrie>=2.3.2
asynclocalfs =
fsspec>=2022.10.0
typing_extensions>=3.10.0; python_version < '3.10'
aiofile==3.8.1
asynclocal =
Expand Down
4 changes: 4 additions & 0 deletions src/morefs/asyn_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,15 @@ class AsyncLocalFileSystem(AsyncFileSystem, LocalFileSystem):
_mv_file = wrap(LocalFileSystem.mv_file)
_pipe_file = wrap(LocalFileSystem.pipe_file)
_put_file = wrap(LocalFileSystem.put_file)
_read_bytes = wrap(LocalFileSystem.read_bytes)
_read_text = wrap(LocalFileSystem.read_text)
_rm = wrap(LocalFileSystem.rm)
_rm_file = wrap(LocalFileSystem.rm_file)
_rmdir = wrap(LocalFileSystem.rmdir)
_touch = wrap(LocalFileSystem.touch)
_symlink = wrap(LocalFileSystem.symlink)
_write_bytes = wrap(LocalFileSystem.write_bytes)
_write_text = wrap(LocalFileSystem.write_text)
sign = LocalFileSystem.sign

async def _get_file(
Expand Down

0 comments on commit 7128c74

Please sign in to comment.