EditorFileSystemDirectory

    Category: Core

    A directory for the resource filesystem.

    A more generalized, low-level variation of the directory concept.

    • find_dir_index ( String name ) const

    Returns the index of the directory with name or -1 if not found.



    • get_file ( int idx ) const

    Returns the name of the file at index .


    • get_file_count ( ) const

    Returns the number of files in this directory.


    • bool get_file_import_is_valid ( idx ) const

    Returns true if the file at index idx imported properly.


    • String get_file_path ( idx ) const

    Returns the path to the file at index idx.


    • String get_file_script_class_extends ( idx ) const


    • String get_file_type ( idx ) const

    Returns the name of this directory.


    • get_parent ( )

    Returns the parent directory for this directory or null if called on a directory at res:// or user://.


    Returns the path to this directory.


    • get_subdir ( int idx )

    Returns the subdirectory at index idx.