Skip to main content
View Source on Github

Attributes

classes

dirpath

files

functions

global_vars

import_statements

items

name

parent

path

subdirectories

symbols

Methods

add_file

Add a file to the directory.
View Source on Github

add_subdirectory

Add a subdirectory to the directory.
View Source on Github

get_class

Get a class by name in the directory and its subdirectories.
View Source on Github

get_file

Get a file by its name relative to the directory.
View Source on Github

get_function

Get a function by name in the directory and its subdirectories.
View Source on Github

get_global_var

Get a global variable by name in the directory and its subdirectories.
View Source on Github

get_import_statement

Get an import statement by name in the directory and its subdirectories.
View Source on Github

get_subdirectory

Get a subdirectory by its path relative to the directory.
View Source on Github

get_symbol

Get a symbol by name in the directory and its subdirectories.
View Source on Github

remove

Remove the directory and all its files and subdirectories.
View Source on Github

remove_file

Remove a file from the directory.
View Source on Github

remove_file_by_path

Remove a file from the directory by its path.
View Source on Github

remove_subdirectory

Remove a subdirectory from the directory.
View Source on Github

remove_subdirectory_by_path

Remove a subdirectory from the directory by its path.
View Source on Github

rename

Rename the directory.
View Source on Github

update_filepath

Update the filepath of the directory.
View Source on Github