소스 검색

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 {