| 程序包 | 说明 |
|---|---|
| com.iofairy.falcon.fs |
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
private SeparatorType |
PathInfo.separatorType |
分隔符类型
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
SeparatorType |
PathInfo.getSeparatorType() |
|
static SeparatorType |
SeparatorType.valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
|
static SeparatorType[] |
SeparatorType.values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
private static PathInfo |
FilePath.getPathInfo(String filePath,
SeparatorType separatorType) |
获取PathInfo
注: Win和Unix-like系统 . 与 .. 都代表文件夹,无法创建重名的文件;Win下无法创建只包含 . 的文件或文件夹;Win下无法创建包含 / 或 \ 的文件或文件夹;Unix-like下无法创建包含 / 的文件或文件夹,可以创建只包含 \ 的文件或文件夹(mkdir \\ 或 touch \\) |
void |
PathInfo.setSeparatorType(SeparatorType separatorType) |
| 构造器 | 说明 |
|---|---|
PathInfo(boolean hasRoot,
String root,
String parentPath,
String fullPath,
String[] paths,
String fileName,
String separator,
SeparatorType separatorType) |
Copyright © 2023. All rights reserved.