瀏覽代碼

Re-add LocalFileSystem.dir() on nodejs

trethaller 6 年之前
父節點
當前提交
1c64565bd9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hxd/fs/LocalFileSystem.hx

+ 1 - 1
hxd/fs/LocalFileSystem.hx

@@ -552,7 +552,7 @@ class LocalFileSystem implements FileSystem {
 	}
 
 	public function dir( path : String ) : Array<FileEntry> {
-		#if sys
+		#if (sys || nodejs)
 		if( !sys.FileSystem.exists(baseDir + path) || !sys.FileSystem.isDirectory(baseDir + path) )
 			throw new NotFound(baseDir + path);
 		var files = sys.FileSystem.readDirectory(baseDir + path);