Skip to main content
View Source on Github

Attributes

classes

Get a recursive list of all classes in the directory and its subdirectories.

dirpath

files

Get a recursive list of all files in the directory and its subdirectories.

functions

Get a recursive list of all functions in the directory and its subdirectories.

global_vars

Get a recursive list of all global variables in the directory and its subdirectories.

import_statements

Get a recursive list of all import statements in the directory and its subdirectories.

items

name

Get the base name of the directory's path.

parent

path

subdirectories

Get a recursive list of all subdirectories in the directory and its subdirectories.

symbols

Get a recursive list of all symbols in the directory and its subdirectories.

Methods

add_file

Add a file to the directory.
View Source on Github

Returns

add_subdirectory

Add a subdirectory to the directory.
View Source on Github

Returns

get_class

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

Returns

get_file

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

Returns

get_function

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

Returns

get_global_var

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

Returns

get_import_statement

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

Returns

get_subdirectory

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

Returns

get_symbol

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

Returns

remove

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

Returns

remove_file

Remove a file from the directory.
View Source on Github

Returns

remove_file_by_path

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

Returns

remove_subdirectory

Remove a subdirectory from the directory.
View Source on Github

Returns

remove_subdirectory_by_path

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

Returns

rename

Rename the directory.
View Source on Github

Returns

update_filepath

Update the filepath of the directory.
View Source on Github

Returns