Browse Source

fix when file gets deleted

Nicolas Cannasse 2 năm trước cách đây
mục cha
commit
ff58b6c86f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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