Selaa lähdekoodia

Fix watch callback called if source file is busy.

clementlandrin 11 kuukautta sitten
vanhempi
commit
1d8d6e86e2
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      hxd/fs/LocalFileSystem.hx

+ 1 - 1
hxd/fs/LocalFileSystem.hx

@@ -167,7 +167,7 @@ class LocalEntry extends FileEntry {
 				// Fix searching path in hide/bin folder
 				// Fix searching path in hide/bin folder
 				path = hide.Ide.inst.getPath(path);
 				path = hide.Ide.inst.getPath(path);
 				#end
 				#end
-				var fid = js.node.Fs.openSync(path, cast (cst.O_RDONLY | cst.O_EXCL | 0x10000000));
+				var fid = js.node.Fs.openSync(path, cast (cst.O_APPEND | 0x10000000));
 				js.node.Fs.closeSync(fid);
 				js.node.Fs.closeSync(fid);
 				#elseif hl
 				#elseif hl
 				if( fileIsLocked(@:privateAccess Sys.getPath(w.file)) )
 				if( fileIsLocked(@:privateAccess Sys.getPath(w.file)) )