소스 검색

Merge branch 'bmx-ng:master' into master

zarosath 1 년 전
부모
커밋
a950437287
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      filesystem.mod/filesystem.bmx

+ 9 - 0
filesystem.mod/filesystem.bmx

@@ -235,6 +235,15 @@ Function FileType:Int( path:String )
 	Return FILETYPE_NONE
 End Function
 
+Rem
+bbdoc: Checks if a file or directory exists
+returns: #True if the file or directory at @path exists
+about: Use #FileType to check if the file is a directory or a plain file.
+End Rem
+Function FileExists:Int( path:String )
+	Return FileType( path ) <> FILETYPE_NONE
+End Function
+
 Rem
 bbdoc: Gets file time
 returns: The time the file at @path was last modified.