ShiroSmith před 7 roky
rodič
revize
bfd4d05e0e
2 změnil soubory, kde provedl 3 přidání a 5 odebrání
  1. 2 4
      hxd/fs/EmbedFileSystem.hx
  2. 1 1
      hxd/fs/LocalFileSystem.hx

+ 2 - 4
hxd/fs/EmbedFileSystem.hx

@@ -222,7 +222,7 @@ class EmbedFileSystem #if !macro implements FileSystem #end {
 		return path == "." ? [] : path.split("/");
 	}
 
-	function subFiles( path : String ) : Array<FileEntry> {
+	function  subFiles( path : String ) : Array<FileEntry> {
 		var r = root;
 		for( p in splitPath(path) )
 			r = Reflect.field(r, p);
@@ -289,9 +289,7 @@ class EmbedFileSystem #if !macro implements FileSystem #end {
 	}
 
 	public function dir( path : String ) : Array<FileEntry> {
-		if( !isDirectory(path) )
-			throw new NotFound(path);
-		return subFiles(path)
+		throw "Not Supported";
 	}
 
 }

+ 1 - 1
hxd/fs/LocalFileSystem.hx

@@ -595,7 +595,7 @@ class LocalFileSystem implements FileSystem {
 	public function dispose() {
 	}
 
-	public function dir( path : String ) :  Array<FileEntry> {
+	public function dir( path : String ) : Array<FileEntry> {
 		return null;
 	}
 }