Browse Source

Improve folder detection

luboslenco 3 năm trước cách đây
mục cha
commit
f46fcf844b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 {
-		return p.indexOf(".") == -1;
+		return p.replace("\\", "/").split("/").pop().indexOf(".") == -1;
 	}
 
 	public static function isProtected(): Bool {