public class FolderPath extends Path
Represents a directory path.
import klyn.io root = Path.cwd names = root.listNames() print(names.size)
| Modifier and Type | Member | Description |
|---|---|---|
| public | FolderPathFolderPath(base as FolderPath, names... as String) |
Convenience overload when the base is already a FolderPath. |
| public | FolderPathFolderPath(base as Path, names... as String) |
Creates a directory path by resolving multiple child segments from a base path. |
| public | FolderPathFolderPath(filename as String) |
Creates a directory path wrapper from a path string. |
| public | FolderPathFolderPath(path as Path) |
Creates a directory path wrapper from another path instance. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | list | Lists direct children as paths. |
| public | listNames | Lists direct child names. |
| public | mkdirmkdir() as Void throws IOException |
Creates this directory only. |
| public | mkdirsmkdirs() as Void throws IOException |
Creates this directory and all missing parent directories. |
| public | openReaderopenReader(
includeFileNames as Boolean = true,
includeFileBytes as Boolean = false,
followSymlinks as Boolean = false
) as DirectoryReader throws IOException |
Opens a streaming cursor over this directory. |
| public | removeAllremoveAll() as Void throws IOException |
Recursively removes the folder content and the folder itself. |
| public | toAbsoluteFoldertoAbsoluteFolder() as FolderPath throws IOException |
Returns a lexically normalized absolute FolderPath without querying target metadata on disk. |