浏览代码

fix watch directory

ncannasse 9 年之前
父节点
当前提交
d160fc74cb
共有 1 个文件被更改,包括 1 次插入0 次删除
  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);