|
@@ -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";
|
|
|
}
|
|
|
|
|
|
}
|