This repository was archived by the owner on Mar 16, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +28
-3
lines changed Expand file tree Collapse file tree 1 file changed +28
-3
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,26 @@ function getSystemDirs() {
35
35
return new Promise ( ( resolve , reject ) => {
36
36
try {
37
37
RNFetchBlob . getEnvironmentDirs ( ( ...dirs ) => {
38
- let [ DocumentDir , CacheDir , DCIMDir , DownloadDir ] = [ ...dirs ]
39
- resolve ( { DocumentDir, CacheDir, DCIMDir, DownloadDir} )
38
+ let [
39
+ DocumentDir ,
40
+ CacheDir ,
41
+ // Android only
42
+ DCIMDir ,
43
+ DownloadDir ,
44
+ PictureDir ,
45
+ MusicDir ,
46
+ MovieDir ,
47
+ RingToneDir ] = [ ...dirs ]
48
+ resolve ( {
49
+ DocumentDir,
50
+ CacheDir,
51
+ DCIMDir,
52
+ DownloadDir,
53
+ PictureDir,
54
+ MusicDir,
55
+ MovieDir,
56
+ RingToneDir
57
+ } )
40
58
} )
41
59
} catch ( err ) {
42
60
reject ( err )
@@ -182,6 +200,10 @@ function mv(path:string, dest:string):Promise<boolean> {
182
200
} )
183
201
}
184
202
203
+ function lstat(path:string):Promise< Array < RNFetchBlobFile > > {
204
+
205
+ }
206
+
185
207
function ls(path:string):Promise< Array < String > > {
186
208
return new Promise ( ( resolve , reject ) => {
187
209
RNFetchBlob . ls ( path , ( err , res ) => {
@@ -255,5 +277,8 @@ export default {
255
277
writeStream ,
256
278
exists ,
257
279
createFile ,
258
- isDir
280
+ isDir ,
281
+ stat ,
282
+ lstat ,
283
+ scanFile
259
284
}
You can’t perform that action at this time.
0 commit comments