Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuno Silva committed Jan 30, 2023
1 parent 6135279 commit c5e5e22
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,16 @@ to list all the files or directories in the top-level of a storage container, yo
api.md
```

**Note**: When uploading a blob (with `write_bytes` or `write_text`) you can injects kwargs directly into `upload_blob` method:
Note that When uploading a blob (with `write_bytes` or `write_text`) you can injects kwargs directly into `upload_blob` method:
```{code-block} python
>>> from azure.storage.blob import ContentSettings
>>> fs = adlfs.AzureBlobFileSystem(account_name="ai4edataeuwest")
>>> fs.write_bytes(path="path", value=data, overwrite=True, **{"content_settings": ContentSettings(content_type="application/json", content_encoding="br")})
>>> fs.write_bytes(
path="path",
value=data,
overwrite=True,
**{"content_settings": ContentSettings(content_type="application/json", content_encoding="br")}
)
```

[fsspec]: https://filesystem-spec.readthedocs.io
Expand Down

0 comments on commit c5e5e22

Please sign in to comment.