File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ type MkdirOptions = {
3333
3434type ReadDirItem = {
3535 ctime : ?Date ; // The creation date of the file (iOS only)
36- mtime: Date ; // The last modified date of the file
36+ mtime: ? Date ; // The last modified date of the file
3737 name: string ; // The name of the item
3838 path: string ; // The absolute path to the item
3939 size: string ; // Size in bytes
@@ -47,7 +47,7 @@ type StatResult = {
4747 size: string ; // Size in bytes
4848 mode: number ; // UNIX file mode
4949 ctime: number ; // Created date
50- utime : number ; // Updated date
50+ mtime : number ; // Last modified date
5151 isFile: ( ) => boolean ; // Is the file just a file?
5252 isDirectory: ( ) => boolean ; // Is the file a directory?
5353} ;
@@ -165,7 +165,7 @@ function readDirGeneric(dirpath: string, command: Function) {
165165 return command ( normalizeFilePath ( dirpath ) ) . then ( files => {
166166 return files . map ( file => ( {
167167 ctime : file . ctime && new Date ( file . ctime * 1000 ) || null ,
168- mtime : new Date ( file . mtime * 1000 ) ,
168+ mtime : file . mtime && new Date ( file . mtime * 1000 ) || null ,
169169 name : file . name ,
170170 path : file . path ,
171171 size : file . size ,
You can’t perform that action at this time.
0 commit comments