Jelajahi Sumber

Make LocalEntry iterator skip files removed in convert

Instead of iterating on null
Leonardo Jeanteur 1 tahun lalu
induk
melakukan
6ea2bbdd2c
1 mengubah file dengan 3 tambahan dan 1 penghapusan
  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);