diff options
| author | reduz | 2014-06-11 01:19:39 -0300 |
|---|---|---|
| committer | reduz | 2014-06-11 01:19:39 -0300 |
| commit | bb0dd1c5f9c1219eb5d4880f5521943f66b8d03f (patch) | |
| tree | d7bd13bad144c41f2e8bb448d5d233b46402738b /core/io/file_access_pack.cpp | |
| parent | 2bf34875debd1b60809d22cf61a300b56cdfe084 (diff) | |
| parent | e6c1689b69e9e0ec530902b550c9e1e2d1cd0aae (diff) | |
| download | godot-bb0dd1c5f9c1219eb5d4880f5521943f66b8d03f.tar.gz godot-bb0dd1c5f9c1219eb5d4880f5521943f66b8d03f.tar.zst godot-bb0dd1c5f9c1219eb5d4880f5521943f66b8d03f.zip | |
Merge pull request #459 from marynate/PR-diracccess-dir-exists
Add DirAccess:dir_exist api
Diffstat (limited to 'core/io/file_access_pack.cpp')
| -rw-r--r-- | core/io/file_access_pack.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/io/file_access_pack.cpp b/core/io/file_access_pack.cpp index 6a28fa9da..e2cb300eb 100644 --- a/core/io/file_access_pack.cpp +++ b/core/io/file_access_pack.cpp @@ -443,6 +443,11 @@ bool DirAccessPack::file_exists(String p_file){ return current->files.has(p_file); } +bool DirAccessPack::dir_exists(String p_dir) { + + return current->subdirs.has(p_dir); +} + Error DirAccessPack::make_dir(String p_dir){ return ERR_UNAVAILABLE; |
