|
AnyCAD Rapid API 2026
Help you to create a better world!
|
Public 成员函数 | |
| PathUtil (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| void | Dispose () |
静态 Public 成员函数 | |
| static string | ToUtf8 (string filePath) |
| 转成UTF8 | |
| static string | GetFolderPath (string fileName) |
| 获取文件夹 | |
| static string | GetFileName (string fileName) |
| 获取文件名,带后缀 | |
| static bool | CreateFolders (string folderName) |
| 创建目录,如果父目录不存在,会递归创建 | |
| static string | Extension (string fileName) |
| 提取文件后缀 | |
| static string | GetBackupFileName (string fileName) |
| 根据文件名生成备份的文件名 | |
| static bool | IsExist (string fileName) |
| 路径是否存在 | |
| static string | GetProgramPath () |
| 获取程序所在的目录 | |
| static string | GetProgramPathUTF8 () |
| static string | GetNativeProgramPath () |
| 获取原生程序的目录 | |
| static string | GetAssetPath () |
| 资源路径 | |
| static string | TempFileName (string postfix) |
| 在临时目录中生成临时文件 | |
| static string | TempDirectory () |
| static StringList | GetFilesWithExts (string dirPath, string exts, bool recursively) |
| 获取指定目录下指定后缀的所有文件路径 | |
| static StringList | GetFilesWithExts (string dirPath, string exts) |
| 获取指定目录下指定后缀的所有文件路径 | |
| static string | Append (string baseDir, string subPath) |
| 拼接路径 | |
| static string | AppendA (string baseDir, string subPath) |
| static string | GetFileNameWithoutExt (string filePath) |
| 获取不带扩展名的文件名 | |
| static string | GetFileNameWithExt (string filePath) |
| 获取带扩展名的文件名 | |
| static StringList | GetSubDirectories (string dirPath) |
| 获取指定文件目录的次级目录 | |
| static bool | IsDirectory (string path) |
| 判断指定路径是否为文件目录路径 | |
| static bool | Exists (string path) |
| 检查指定路径是否存在 | |
| static bool | ExistsA (string path) |
| 检查指定路径是否存在 | |
Group: Common The Path utility
|
static |
拼接路径
| baseDir | 基础目录路径 |
| subPath | 次级目录/文件路径 |
|
static |
创建目录,如果父目录不存在,会递归创建
| folderName | 目录路径 |
|
static |
检查指定路径是否存在
| path | utf8编码的路径字符串, |
|
static |
检查指定路径是否存在
| path | ANSI编码的路径字符串, |
|
static |
提取文件后缀
| fileName | 文件名。 |
|
static |
资源路径
|
static |
根据文件名生成备份的文件名
| fileName | 文件名 |
|
static |
获取文件名,带后缀
| fileName | 路径 |
|
static |
获取带扩展名的文件名
| filePath | utf8编码的文件路径字符串 |
|
static |
获取不带扩展名的文件名
| filePath | utf8编码的文件路径字符串 |
|
static |
获取指定目录下指定后缀的所有文件路径
| dirPath | utf8编码的目录路径字符串 |
| exts | 文件后缀,格式为"*.acad"、"*.acad | *.act"等 |
|
static |
获取指定目录下指定后缀的所有文件路径
| dirPath | utf8编码的目录路径字符串 |
| exts | 文件后缀,格式为"*.acad"、"*.acad | *.act"等 |
|
static |
获取文件夹
| fileName |
|
static |
获取原生程序的目录
|
static |
获取程序所在的目录
|
static |
获取指定文件目录的次级目录
| dirPath | utf8编码的指定目录路径字符串 |
|
static |
判断指定路径是否为文件目录路径
| path | utf8编码的指定路径字符串 |
|
static |
路径是否存在
| fileName | 文件路径 |
|
static |
在临时目录中生成临时文件
| postfix | 后缀,如 .png |
|
static |
转成UTF8
| filePath | UNICODE的字符串 |