summaryrefslogtreecommitdiff
path: root/core/core_bind.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2021-08-30 20:45:45 -0300
committerGitHub <noreply@github.com>2021-08-30 20:45:45 -0300
commitbcd73fc00a913babb501dd119d3d833aceaf88da (patch)
treef5213fab100f72bbfecba792e0b05b72c2ddd2da /core/core_bind.cpp
parentd085b2d04d6a6f972cc252532dbbf07f0d54fc3c (diff)
parentd11c1afc0497894edd8307434948fc8fb4bb1b11 (diff)
Merge pull request #52240 from Rubonnek/rename-rel-path
Rename `String::is_rel_path` to `String::is_relative_path`
Diffstat (limited to 'core/core_bind.cpp')
-rw-r--r--core/core_bind.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/core_bind.cpp b/core/core_bind.cpp
index 83a3b80803..fd5b3bb731 100644
--- a/core/core_bind.cpp
+++ b/core/core_bind.cpp
@@ -1504,7 +1504,7 @@ String Directory::get_current_dir() {
Error Directory::make_dir(String p_dir) {
ERR_FAIL_COND_V_MSG(!d, ERR_UNCONFIGURED, "Directory is not configured properly.");
- if (!p_dir.is_rel_path()) {
+ if (!p_dir.is_relative_path()) {
DirAccess *d = DirAccess::create_for_path(p_dir);
Error err = d->make_dir(p_dir);
memdelete(d);
@@ -1515,7 +1515,7 @@ Error Directory::make_dir(String p_dir) {
Error Directory::make_dir_recursive(String p_dir) {
ERR_FAIL_COND_V_MSG(!d, ERR_UNCONFIGURED, "Directory is not configured properly.");
- if (!p_dir.is_rel_path()) {
+ if (!p_dir.is_relative_path()) {
DirAccess *d = DirAccess::create_for_path(p_dir);
Error err = d->make_dir_recursive(p_dir);
memdelete(d);
@@ -1526,7 +1526,7 @@ Error Directory::make_dir_recursive(String p_dir) {
bool Directory::file_exists(String p_file) {
ERR_FAIL_COND_V_MSG(!d, false, "Directory is not configured properly.");
- if (!p_file.is_rel_path()) {
+ if (!p_file.is_relative_path()) {
return FileAccess::exists(p_file);
}
@@ -1535,7 +1535,7 @@ bool Directory::file_exists(String p_file) {
bool Directory::dir_exists(String p_dir) {
ERR_FAIL_COND_V_MSG(!d, false, "Directory is not configured properly.");
- if (!p_dir.is_rel_path()) {
+ if (!p_dir.is_relative_path()) {
DirAccess *d = DirAccess::create_for_path(p_dir);
bool exists = d->dir_exists(p_dir);
memdelete(d);
@@ -1559,7 +1559,7 @@ Error Directory::rename(String p_from, String p_to) {
ERR_FAIL_COND_V_MSG(!is_open(), ERR_UNCONFIGURED, "Directory must be opened before use.");
ERR_FAIL_COND_V_MSG(p_from.is_empty() || p_from == "." || p_from == "..", ERR_INVALID_PARAMETER, "Invalid path to rename.");
- if (!p_from.is_rel_path()) {
+ if (!p_from.is_relative_path()) {
DirAccess *d = DirAccess::create_for_path(p_from);
ERR_FAIL_COND_V_MSG(!d->file_exists(p_from) && !d->dir_exists(p_from), ERR_DOES_NOT_EXIST, "File or directory does not exist.");
Error err = d->rename(p_from, p_to);
@@ -1573,7 +1573,7 @@ Error Directory::rename(String p_from, String p_to) {
Error Directory::remove(String p_name) {
ERR_FAIL_COND_V_MSG(!is_open(), ERR_UNCONFIGURED, "Directory must be opened before use.");
- if (!p_name.is_rel_path()) {
+ if (!p_name.is_relative_path()) {
DirAccess *d = DirAccess::create_for_path(p_name);
Error err = d->remove(p_name);
memdelete(d);