View Source on Github
Attributes
classes
dirpath
exports
file_names
functions
global_vars
import_statements
imports
item_names
name
parent
path
symbols
tree
Methods
files
Gets a list of all top level files in the directory.View Source on Github
get_class
Get a class by name in files container.View Source on Github
get_export
Get an export by name in files container (supports only typescript).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 files container.View Source on Github
get_global_var
Get a global variable by name in files container.View Source on Github
get_import
Get an import by name in files container.View Source on Github
get_import_statement
Get an import statement by name in files container.View Source on Github
get_subdirectory
Get a subdirectory by its name (relative to the directory).View Source on Github
get_symbol
Get a symbol by name in files container.View Source on Github
items
Get a list of all files and subdirectories in the directory.View Source on Github
remove
Remove all the files in the files container.View Source on Github
rename
Rename the directory.View Source on Github
subdirectories
Get a list of all top level subdirectories in the directory.View Source on Github
update_filepath
Update the filepath of the directory and its contained files.View Source on Github