A diretory 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 file extension of the file at index [code]idx[/code]. Returns the name of this directory. Returns the parent directory for this directory or null 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.