Browse Source

Update README.md

wkh237 8 years ago
parent
commit
ee0e135eca
1 changed files with 41 additions and 1 deletions
  1. 41
    1
      README.md

+ 41
- 1
README.md View File

492
 
492
 
493
 `0.5.0`
493
 `0.5.0`
494
 
494
 
495
-#### `getSystemDirs()`
495
+#### `getSystemDirs():Promise<object>`
496
 
496
 
497
 This method returns common used folders:
497
 This method returns common used folders:
498
 
498
 
504
 example 
504
 example 
505
 
505
 
506
 ```js
506
 ```js
507
+RNFetchBlob.getSystemDirs().then((dirs) => {
508
+    console.log(dirs.DocumentDir)
509
+    console.log(dirs.CacheDir)
510
+    console.log(dirs.DCIMDir)
511
+    console.log(dirs.DownloadDir)
512
+})
507
 ```
513
 ```
508
 
514
 
509
 If you're going to make downloaded file visible in Android `Downloads` app, please see [Show Downloaded File and Notification in Android Downloads App](#user-content-show-downloaded-file-in-android-downloads-app).
515
 If you're going to make downloaded file visible in Android `Downloads` app, please see [Show Downloaded File and Notification in Android Downloads App](#user-content-show-downloaded-file-in-android-downloads-app).
512
 
518
 
513
 TODO
519
 TODO
514
 
520
 
521
+#### writeStream(path:string, encoding:string, append:boolean):Promise<WriteStream>
522
+
523
+TODO
524
+
525
+#### readStream(path:string, encoding:string, append:boolean):Promise<ReadStream>
526
+
527
+TODO
528
+
529
+#### mkdir(path:string):Promise
530
+
531
+TODO
532
+
533
+#### ls(path:string):Promise
534
+
535
+TODO
536
+
537
+#### mv(from:string, to:string):Promise
515
 
538
 
539
+TODO
540
+
541
+#### cp(path:string):Promise
542
+
543
+TODO
544
+
545
+#### exists(path:string):Promise<boolean>
546
+
547
+TODO
548
+
549
+#### isDir(path:string):Promise<boolean>
550
+
551
+TODO
552
+
553
+#### unlink(path:string):Promise<boolean>
554
+
555
+TODO
516
 
556
 
517
 ### Types
557
 ### Types
518
 
558