Sfoglia il codice sorgente

fix when file gets deleted

Nicolas Cannasse 2 anni fa
parent
commit
ff58b6c86f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      hxd/fs/LocalFileSystem.hx

+ 1 - 1
hxd/fs/LocalFileSystem.hx

@@ -112,7 +112,7 @@ class LocalEntry extends FileEntry {
 	static var tmpDir : String = null;
 	static var tmpDir : String = null;
 
 
 	inline function getModifTime(){
 	inline function getModifTime(){
-		return sys.FileSystem.stat(originalFile != null ? originalFile : file).mtime.getTime();
+		return try sys.FileSystem.stat(originalFile != null ? originalFile : file).mtime.getTime() catch( e : Dynamic ) 0;
 	}
 	}
 
 
 	#if hl
 	#if hl