浏览代码

Make LocalEntry iterator skip files removed in convert

Instead of iterating on null
Leonardo Jeanteur 1 年之前
父节点
当前提交
6ea2bbdd2c
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      hxd/fs/LocalFileSystem.hx

+ 3 - 1
hxd/fs/LocalFileSystem.hx

@@ -92,7 +92,9 @@ class LocalEntry extends FileEntry {
 			case ".tmp" if( this == fs.root ):
 				continue;
 			default:
-				arr.push(fs.open(relPath == null ? f : relPath + "/" + f,false));
+				var entry = fs.open(relPath == null ? f : relPath + "/" + f,false);
+				if( entry != null )
+					arr.push(entry);
 			}
 		}
 		return new hxd.impl.ArrayIterator(arr);