ソースを参照

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);