@@ -54,7 +54,7 @@ class FileSystem {
}
static function kind( path : String ) : FileKind {
- var k:String = sys_file_type(path);
+ var k:String = sys_file_type(haxe.io.Path.removeTrailingSlashes(path));
return switch(k) {
case "file": kfile;
case "dir": kdir;
@@ -51,7 +51,7 @@ class FileSystem {
- var k = new String(sys_file_type(untyped path.__s));
+ var k = new String(sys_file_type(untyped (haxe.io.Path.removeTrailingSlashes(path)).__s));
@@ -1,4 +1,6 @@
#if sys
sys.FileSystem.exists("unitstd") == true;
sys.FileSystem.exists("unitstd/") == true;
+sys.FileSystem.isDirectory("unitstd") == true;
+sys.FileSystem.isDirectory("unitstd/") == true;
#end