FolderPath
classin packageklyn.io
public class FolderPath extends Path:
Represents a directory path.
import klyn.io
root = Path.cwd
names = root.listNames()
print(names.size)
Properties inherited from Path: cwd,
exists,
isAbsolute,
isDirectory,
isNormalized,
isRegular,
isSymlink,
klynHome,
lastModified,
tempDir,
userHome
Constructors
| Modifier and Type |
Member |
Description |
| public |
FolderPath |
Convenience overload when the base is already a FolderPath. |
| public |
FolderPath |
Creates a directory path by resolving multiple child segments from a base path. |
| public |
FolderPath |
Creates a directory path wrapper from a path string. |
| public |
FolderPath |
Creates a directory path wrapper from another path instance. |
Methods
| Modifier and Type |
Member |
Description |
| public |
list |
Lists direct children as paths. |
| public |
listNames |
Lists direct child names. |
| public |
mkdir |
Creates this directory only. |
| public |
mkdirs |
Creates this directory and all missing parent directories. |
| public |
removeAll |
Recursively removes the folder content and the folder itself. |
Methods inherited from Path: absolute,
delete,
endsWith,
extension,
file,
folder,
get,
lastModified,
name,
normalize,
parent,
relativize,
remove,
rename,
resolve,
resolve,
resolve,
resolve,
startsWith,
toAbsolute,
toString,
touch