Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Commit

Permalink
docs(readme): update file directory enum (#170)
Browse files Browse the repository at this point in the history
`FilesystemDirectory` is deprecated and got replaced by `Directory`.
  • Loading branch information
danielsogl authored Nov 10, 2021
1 parent 6aca648 commit f3ac495
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const downloadFile = async () => {
const options = {
url: 'https://example.com/path/to/download.pdf',
filePath: 'document.pdf',
fileDirectory: FilesystemDirectory.Downloads,
fileDirectory: Directory.Downloads,
// Optional
method: 'GET',
};
Expand All @@ -125,7 +125,7 @@ const downloadFile = async () => {
if (response.path) {
const read = await Filesystem.readFile({
path: 'download.pdf',
directory: FilesystemDirectory.Downloads,
directory: Directory.Downloads,
});
}
};
Expand Down

0 comments on commit f3ac495

Please sign in to comment.