Skip to main content

Attributes

classes

dirpath

files

functions

global_vars

import_statements

items

name

parent

path

subdirectories

symbols

Methods

add_file

Add a file to the directory.

add_subdirectory

Add a subdirectory to the directory.

get_class

Get a class by name in the directory and its subdirectories.

get_file

Get a file by its name relative to the directory.

get_function

Get a function by name in the directory and its subdirectories.

get_global_var

Get a global variable by name in the directory and its subdirectories.

get_import_statement

Get an import statement by name in the directory and its subdirectories.

get_subdirectory

Get a subdirectory by its path relative to the directory.

get_symbol

Get a symbol by name in the directory and its subdirectories.

remove

Remove the directory and all its files and subdirectories.

remove_file

Remove a file from the directory.

remove_file_by_path

Remove a file from the directory by its path.

remove_subdirectory

Remove a subdirectory from the directory.

remove_subdirectory_by_path

Remove a subdirectory from the directory by its path.

rename

Rename the directory.

update_filepath

Update the filepath of the directory.