A directory for the resource filesystem.
A more generalized, low-level variation of the directory concept.
Returns the index of the directory with name [code]name[/code] or [code]-1[/code] if not found.
Returns the index of the file with name [code]name[/code] or [code]-1[/code] if not found.
Returns the name of the file at index [code]idx[/code].
Returns the number of files in this directory.
Returns [code]true[/code] if the file at index [code]idx[/code] imported properly.
Returns the path to the file at index [code]idx[/code].
Returns the base class of the script class defined in the file at index [code]idx[/code]. If the file doesn't define a script class using the [code]class_name[/code] syntax, this will return an empty string.
Returns the name of the script class defined in the file at index [code]idx[/code]. If the file doesn't define a script class using the [code]class_name[/code] syntax, this will return an empty string.
Returns the resource type of the file at index [code]idx[/code]. This returns a string such as [code]"Resource"[/code] or [code]"GDScript"[/code], [i]not[/i] a file extension such as [code]".gd"[/code].
Returns the name of this directory.
Returns the parent directory for this directory or [code]null[/code] if called on a directory at [code]res://[/code] or [code]user://[/code].
Returns the path to this directory.
Returns the subdirectory at index [code]idx[/code].
Returns the number of subdirectories in this directory.