public Path(filename as String):
Creates a raw path object from a path string, even if the path does not exist.
Use Path.get(...) when the path must exist and you want a concrete type (FilePath or FolderPath).
Path.get(...)
FilePath
FolderPath