Bladeren bron

Update README.md

wkh237 8 jaren geleden
bovenliggende
commit
f583f9e8fa
1 gewijzigde bestanden met toevoegingen van 13 en 4 verwijderingen
  1. 13
    4
      README.md

+ 13
- 4
README.md Bestand weergeven

@@ -2,7 +2,7 @@
2 2
 
3 3
 ## v0.5.0 Work In Progress README.md
4 4
 
5
-Module for upload, download, and access files in JS context. Also provides file stream API for read/write large files.
5
+Module for upload, download, and access files in JS context. Also has file stream API for read/write large files.
6 6
 
7 7
 If you're getting into trouble with image or file server that requires specific fields in the header, or you're having problem with `fetch` API when sending/receiving binary data, you might try this module as well.
8 8
 
@@ -623,11 +623,20 @@ RNFetchBlob.fs.readStream(PATH_TO_READ, 'base64')
623 623
 
624 624
 #### mkdir(path:string):Promise
625 625
 
626
-TODO
626
+Create a directory named `path`
627 627
 
628
-#### ls(path:string):Promise
628
+```js
629
+RNFetchBlob.fs.mkdir(PATH_TO_CREATE)
630
+.then(() => { ...})
631
+.catch((err) => { ...})
632
+```
629 633
 
630
-TODO
634
+#### ls(path:string):Promise<Array<String>>
635
+
636
+List files and directories in a `path`
637
+
638
+```js
639
+```
631 640
 
632 641
 #### mv(from:string, to:string):Promise
633 642