瀏覽代碼

always update times.dat

ncannasse 7 年之前
父節點
當前提交
9e178b77df
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      hxd/fs/LocalFileSystem.hx

+ 4 - 4
hxd/fs/LocalFileSystem.hx

@@ -455,11 +455,11 @@ class LocalFileSystem implements FileSystem {
 		}
 		var content = hxd.File.getBytes(realFile);
 		var hash = haxe.crypto.Sha1.make(content).toHex();
-		if( hxd.File.exists(tmpFile) && hash == Reflect.field(root, e.name) ) {
-			times.set(path, time);
-			hxd.File.saveBytes(tmpDir + "times.dat", haxe.io.Bytes.ofString(haxe.Serializer.run(times)));
+		times.set(path, time);
+		hxd.File.saveBytes(tmpDir + "times.dat", haxe.io.Bytes.ofString(haxe.Serializer.run(times)));
+
+		if( hxd.File.exists(tmpFile) && hash == Reflect.field(root, e.name) )
 			return;
-		}
 
 		Reflect.setField(root, e.name, hash);