Prelude.readDirectory
This commit is contained in:
@@ -110,6 +110,7 @@ class Kiss {
|
||||
"zipDrop" => Symbol("Prelude.zipDrop"),
|
||||
"zipThrow" => Symbol("Prelude.zipThrow"),
|
||||
"joinPath" => Symbol("Prelude.joinPath"),
|
||||
"readDirectory" => Symbol("Prelude.readDirectory"),
|
||||
],
|
||||
fieldList: [],
|
||||
fieldDict: new Map(),
|
||||
|
@@ -622,6 +622,14 @@ class Prelude {
|
||||
return Lambda.filter(l, p);
|
||||
}
|
||||
|
||||
#if (sys || hxnodejs)
|
||||
public static function readDirectory(dir:String) {
|
||||
return [for (file in FileSystem.readDirectory(dir)) {
|
||||
joinPath(dir, file);
|
||||
}];
|
||||
}
|
||||
#end
|
||||
|
||||
public static var newLine = "\n";
|
||||
public static var backSlash = "\\";
|
||||
}
|
||||
|
Reference in New Issue
Block a user