Browse Source

Update README.md

wkh237 9 years ago
parent
commit
f583f9e8fa
1 changed files with 13 additions and 4 deletions
  1. 13
    4
      README.md

+ 13
- 4
README.md View File

2
 
2
 
3
 ## v0.5.0 Work In Progress README.md
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
 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.
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
 
623
 
624
 #### mkdir(path:string):Promise
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
 #### mv(from:string, to:string):Promise
641
 #### mv(from:string, to:string):Promise
633
 
642