|
@@ -105,7 +105,7 @@ class FileSystem {
|
|
|
public static function readDirectory( path : String ) : Array<String> {
|
|
|
var l = untyped __call__("array");
|
|
|
untyped __php__('$dh = opendir($path);
|
|
|
- while (($file = readdir($dh)) !== false) $l[] = $file;
|
|
|
+ while (($file = readdir($dh)) !== false) if("." != $file && ".." != $file) $l[] = $file;
|
|
|
closedir($dh);');
|
|
|
return untyped __call__("new _hx_array", l);
|
|
|
}
|