![]() |
Create a generic pathlib.Path
-like abstraction.
tfds.core.as_path(
path: tfds.core.PathLike
) -> tfds.core.ReadWritePath
Depending on the input (e.g. gs://
url, ResourcePath
,...), the
system (Windows, Linux,...), the function will create the right pathlib-like
abstraction.
Args | |
---|---|
path
|
Pathlike object. |
Returns | |
---|---|
path
|
The pathlib.Path -like abstraction.
|