|
@@ -143,7 +143,7 @@ RNFetchBlob
|
143
|
143
|
|
144
|
144
|
**Use Specific File Path**
|
145
|
145
|
|
146
|
|
-If you prefer a specific path rather than random generated one, you can use `path` option. We've added a [getSystemDirs](#user-content-getsysdirs) API in v0.5.0 that lists several common used directories.
|
|
146
|
+If you prefer a specific path rather than random generated one, you can use `path` option. We've added a constant [dirs](#user-content-dirs) in v0.5.0 that contains several common used directories.
|
147
|
147
|
|
148
|
148
|
```js
|
149
|
149
|
let dirs = RNFetchBlob.fs.dirs
|
|
@@ -347,7 +347,7 @@ File access APIs were made when developing `v0.5.0`, which helping us write test
|
347
|
347
|
|
348
|
348
|
Here's the list of `fs` APIs
|
349
|
349
|
|
350
|
|
-- getSystemDirs
|
|
350
|
+- dirs
|
351
|
351
|
- createFile
|
352
|
352
|
- readStream
|
353
|
353
|
- writeStream
|
|
@@ -536,9 +536,9 @@ RNFetchBlob.base64.decode(data)
|
536
|
536
|
|
537
|
537
|
`0.5.0`
|
538
|
538
|
|
539
|
|
-#### getSystemDirs():Map<String, String>
|
|
539
|
+#### dirs
|
540
|
540
|
|
541
|
|
-This method returns common used folders:
|
|
541
|
+This constant is a hash map contains common used folders:
|
542
|
542
|
- DocumentDir
|
543
|
543
|
- CacheDir
|
544
|
544
|
- DCIMDir (Android Only)
|