Created
November 5, 2023 09:26
-
-
Save Gnumaru/14ce3a70b3b396c559dcefb0a402b5e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class_name Utils | |
static func file_exists_(prespath:String, pforceexactmatch:bool=false)->bool: | |
if prespath.begins_with('res://') and not pforceexactmatch: | |
return FileAccess.file_exists(prespath) or FileAccess.file_exists(prespath+'.remap') or FileAccess.file_exists(prespath+'.import') | |
else: | |
return FileAccess.file_exists(prespath) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment