瀏覽代碼

Improve folder detection

luboslenco 3 年之前
父節點
當前提交
f46fcf844b
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 {