Skip to content

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry authored Jan 13, 2024
1 parent 49b7d08 commit 6b71a10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ Extended version of ``LocalFileSystem`` that also provides async methods.
async def main():
fs = AsyncLocalFileSystem(auto_mkdir=False)
async with fs.open_async("foo", mode="w") as f:
f = await fs.open_async("foo", mode="w")
async with f:
await f.write("foobar")
content = await fs._cat("foo")
Expand Down

0 comments on commit 6b71a10

Please sign in to comment.