From da9e6ea5c304d24796037113fc53b2b536357b4d Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Thu, 5 Sep 2024 02:28:35 +0200 Subject: [PATCH] Document file path String methods in File paths in Godot projects --- tutorials/io/data_paths.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tutorials/io/data_paths.rst b/tutorials/io/data_paths.rst index 119352fb9d9..9b2b5abd5e3 100644 --- a/tutorials/io/data_paths.rst +++ b/tutorials/io/data_paths.rst @@ -25,6 +25,23 @@ This makes it possible to work with paths returned by other Windows applications. We still recommend using only forward slashes in your own code to guarantee that everything will work as intended. +.. tip:: + + The String class offers over a dozen methods to work with strings that represent file paths: + + - :ref:`String.filecasecmp_to() ` + - :ref:`String.filenocasecmp_to() ` + - :ref:`String.get_base_dir() ` + - :ref:`String.get_basename() ` + - :ref:`String.get_extension() ` + - :ref:`String.get_file() ` + - :ref:`String.is_absolute_path() ` + - :ref:`String.is_relative_path() ` + - :ref:`String.is_valid_filename() ` + - :ref:`String.path_join() ` + - :ref:`String.simplify_path() ` + - :ref:`String.validate_filename() ` + Accessing files in the project folder (``res://``) --------------------------------------------------