Parcourir la source

Update README.md

wkh237 il y a 8 ans
Parent
révision
ee0e135eca
1 fichiers modifiés avec 41 ajouts et 1 suppressions
  1. 41
    1
      README.md

+ 41
- 1
README.md Voir le fichier

@@ -492,7 +492,7 @@ RNFetchBlob.base64.decode(data)
492 492
 
493 493
 `0.5.0`
494 494
 
495
-#### `getSystemDirs()`
495
+#### `getSystemDirs():Promise<object>`
496 496
 
497 497
 This method returns common used folders:
498 498
 
@@ -504,6 +504,12 @@ This method returns common used folders:
504 504
 example 
505 505
 
506 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 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,7 +518,41 @@ If you're going to make downloaded file visible in Android `Downloads` app, plea
512 518
 
513 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 557
 ### Types
518 558