File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -22,3 +22,8 @@ DerivedData
22
22
# Pods - for those of you who use CocoaPods
23
23
Pods
24
24
update-test.sh
25
+ .vscode /
26
+ android /.gradle /*
27
+ android /gradle /*
28
+ android /* .iml
29
+ android /local.properties
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ var getJobId = () => {
25
25
return jobId ;
26
26
} ;
27
27
28
- var normalizeFilePath = ( path : string ) => ( path . startsWith ( 'file://' ) && ! path . startsWith ( 'content://' ) ? path . slice ( 7 ) : path ) ;
28
+ var normalizeFilePath = ( path : string ) => ( path . startsWith ( 'file://' ) ? path . slice ( 7 ) : path ) ;
29
29
30
30
type MkdirOptions = {
31
31
NSURLIsExcludedFromBackupKey ?: boolean ; // iOS only
@@ -42,13 +42,13 @@ type ReadDirItem = {
42
42
} ;
43
43
44
44
type StatResult = {
45
- name : ?string ; // The name of the item
45
+ name : ?string ; // The name of the item TODO: why is this not documented?
46
46
path: string ; // The absolute path to the item
47
47
size: string ; // Size in bytes
48
48
mode: number ; // UNIX file mode
49
49
ctime: number ; // Created date
50
50
mtime: number ; // Last modified date
51
- originalFilepath: ? string ; // In case of content uri this is the pointed file path, otherwise is the same as path
51
+ originalFilepath: string ; // In case of content uri this is the pointed file path, otherwise is the same as path
52
52
isFile: ( ) => boolean ; // Is the file just a file?
53
53
isDirectory: ( ) => boolean ; // Is the file a directory?
54
54
} ;
Original file line number Diff line number Diff line change @@ -383,10 +383,12 @@ The promise resolves with an object with the following properties:
383
383
384
384
```
385
385
type StatResult = {
386
+ path: // The same as filepath argument
386
387
ctime: date; // The creation date of the file
387
388
mtime: date; // The last modified date of the file
388
389
size: string; // Size in bytes
389
390
mode: number; // UNIX file mode
391
+ originalFilepath: string; // ANDROID: In case of content uri this is the pointed file path, otherwise is the same as path
390
392
isFile: () = > boolean ; // Is the file just a file?
391
393
isDirectory: () = > boolean ; // Is the file a directory?
392
394
};
You can’t perform that action at this time.
0 commit comments