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 | removeAllremoveAll() as Void throws IOException: |
Recursively removes the folder content and the folder itself. |