Explorar o código

fix watch directory

ncannasse %!s(int64=9) %!d(string=hai) anos
pai
achega
d160fc74cb
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      hxd/fs/LocalFileSystem.hx

+ 1 - 0
hxd/fs/LocalFileSystem.hx

@@ -298,6 +298,7 @@ private class LocalEntry extends FileEntry {
 		var t = try w.file.modificationDate.getTime() catch( e : Dynamic ) -1;
 		if( t != w.watchTime ) {
 			// check we can write (might be deleted/renamed/currently writing)
+			if( !w.isDirectory )
 			try {
 				var f = new flash.filesystem.FileStream();
 				f.open(w.file, flash.filesystem.FileMode.READ);