|
PCART
v1.4
Automated Repair of Python API Parameter Compatibility Issues
|
The Path class definition 路径定义类 More...
Public Member Functions | |
| def | __init__ (self, mode) |
| Initialize the Path object with a traversal mode 使用遍历模式初始化Path对象 More... | |
| def | clc (self) |
| Clear previously collected path data for reuse 清空之前收集的路径数据以便复用 More... | |
| def | getPath (self, rootDir) |
| Traverse the root directory and collect file and directory paths 遍历根目录,收集文件和目录路径 More... | |
| def | path (self) |
| Return collected paths (deep copy to avoid mutation) 返回收集到的路径(深拷贝以避免被修改) More... | |
The Path class definition 路径定义类
provide functionalities for obtaining the paths of source files and directories
提供源码和文件夹路径获取功能
Definition at line 23 of file getPath.py.
| def __init__ | ( | self, | |
| mode | |||
| ) |
Initialize the Path object with a traversal mode 使用遍历模式初始化Path对象
| mode | Path traversal mode:
|
Definition at line 31 of file getPath.py.
| def clc | ( | self | ) |
Clear previously collected path data for reuse 清空之前收集的路径数据以便复用
Definition at line 51 of file getPath.py.
| def getPath | ( | self, | |
| rootDir | |||
| ) |
Traverse the root directory and collect file and directory paths 遍历根目录,收集文件和目录路径
| rootDir | The root directory to traverse |
Definition at line 60 of file getPath.py.
| path | ( | self | ) |
Return collected paths (deep copy to avoid mutation) 返回收集到的路径(深拷贝以避免被修改)
Definition at line 43 of file getPath.py.