MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / get_current_dir

Method get_current_dir

utility/file_access_gdre.cpp:845–861  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

843}
844
845String DirAccessGDRE::get_current_dir(bool p_include_drive) const {
846 if (proxy.is_valid()) {
847 return proxy->get_current_dir(p_include_drive);
848 }
849 if (!current) {
850 return "";
851 }
852 GDREPackedData::PackedDir *pd = current;
853 String p = current->name;
854
855 while (pd->parent) {
856 pd = pd->parent;
857 p = pd->name.path_join(p);
858 }
859
860 return "res://" + p;
861}
862
863bool DirAccessGDRE::file_exists(String p_file) {
864 if (proxy.is_valid()) {

Callers 2

get_full_pathMethod · 0.80
localize_pathMethod · 0.80

Calls 1

is_validMethod · 0.45

Tested by

no test coverage detected