Explorar o código

fix when file gets deleted

Nicolas Cannasse %!s(int64=2) %!d(string=hai) anos
pai
achega
ff58b6c86f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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