Selaa lähdekoodia

fix when file gets deleted

Nicolas Cannasse 2 vuotta sitten
vanhempi
commit
ff58b6c86f
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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;
 
 	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