diff --git a/core/variant_call.cpp b/core/variant_call.cpp
index 00b4cb2c613..1c8f3af8858 100644
--- a/core/variant_call.cpp
+++ b/core/variant_call.cpp
@@ -291,6 +291,7 @@ struct _VariantCall {
VCALL_LOCALMEM0R(String, empty);
VCALL_LOCALMEM1R(String, humanize_size);
VCALL_LOCALMEM0R(String, is_abs_path);
+ VCALL_LOCALMEM0R(String, simplify_path);
VCALL_LOCALMEM0R(String, is_rel_path);
VCALL_LOCALMEM0R(String, get_base_dir);
VCALL_LOCALMEM0R(String, get_file);
@@ -1686,6 +1687,7 @@ void register_variant_methods() {
ADDFUNC0R(STRING, BOOL, String, empty, varray());
ADDFUNC1R(STRING, STRING, String, humanize_size, INT, "size", varray());
ADDFUNC0R(STRING, BOOL, String, is_abs_path, varray());
+ ADDFUNC0R(STRING, BOOL, String, simplify_path, varray());
ADDFUNC0R(STRING, BOOL, String, is_rel_path, varray());
ADDFUNC0R(STRING, STRING, String, get_base_dir, varray());
ADDFUNC0R(STRING, STRING, String, get_file, varray());
diff --git a/doc/classes/String.xml b/doc/classes/String.xml
index 8a4ac7da2c5..7a9c04c9738 100644
--- a/doc/classes/String.xml
+++ b/doc/classes/String.xml
@@ -666,6 +666,12 @@
Returns the similarity index of the text compared to this string. 1 means totally similar and 0 means totally dissimilar.
+
+
+
+ Returns a simplified canonical path.
+
+