Browse Source

Improve folder detection

luboslenco 3 years ago
parent
commit
f46fcf844b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/arm/sys/Path.hx

+ 1 - 1
Sources/arm/sys/Path.hx

@@ -159,7 +159,7 @@ class Path {
 	}
 	}
 
 
 	public static function isFolder(p: String): Bool {
 	public static function isFolder(p: String): Bool {
-		return p.indexOf(".") == -1;
+		return p.replace("\\", "/").split("/").pop().indexOf(".") == -1;
 	}
 	}
 
 
 	public static function isProtected(): Bool {
 	public static function isProtected(): Bool {