File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,3 +22,8 @@ DerivedData
2222# Pods - for those of you who use CocoaPods
2323Pods
2424update-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 = () => {
2525 return jobId ;
2626} ;
2727
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 ) ;
2929
3030type MkdirOptions = {
3131 NSURLIsExcludedFromBackupKey ?: boolean ; // iOS only
@@ -42,13 +42,13 @@ type ReadDirItem = {
4242} ;
4343
4444type StatResult = {
45- name : ?string ; // The name of the item
45+ name : ?string ; // The name of the item TODO: why is this not documented?
4646 path: string ; // The absolute path to the item
4747 size: string ; // Size in bytes
4848 mode: number ; // UNIX file mode
4949 ctime: number ; // Created date
5050 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
5252 isFile: ( ) => boolean ; // Is the file just a file?
5353 isDirectory: ( ) => boolean ; // Is the file a directory?
5454} ;
Original file line number Diff line number Diff line change @@ -381,10 +381,12 @@ The promise resolves with an object with the following properties:
381381
382382```
383383type StatResult = {
384+ path: // The same as filepath argument
384385 ctime: date; // The creation date of the file
385386 mtime: date; // The last modified date of the file
386387 size: string; // Size in bytes
387388 mode: number; // UNIX file mode
389+ originalFilepath: string; // ANDROID: In case of content uri this is the pointed file path, otherwise is the same as path
388390 isFile: () = > boolean ; // Is the file just a file?
389391 isDirectory: () = > boolean ; // Is the file a directory?
390392};
You can’t perform that action at this time.
0 commit comments