tfds.core.ReadWritePath

Protocol for pathlib.Path-like API.

Inherits From: ReadOnlyPath

See pathlib.Path documentation.

parent

parents

Methods

as_posix

View source

as_uri

View source

exists

View source

Returns True if self exists.

expanduser

View source

Returns a new path with expanded ~ and ~user constructs.

glob

View source

Yielding all matching files (of any kind).

is_absolute

View source

is_dir

View source

Returns True if self is a dir.

is_file

View source

Returns True if self is a file.

is_reserved

View source

iterdir

View source

Iterates over the directory.

joinpath

View source

match

View source

mkdir

View source

Create a new directory at this given path.

open

View source

Opens the file.

read_bytes

View source

Reads contents of self as bytes.

read_text

View source

Reads contents of self as bytes.

relative_to

View source

rename

View source

Renames the path.

replace

View source

Overwrites the destination path.

resolve

View source

Returns the absolute path.

rglob

View source

Yielding all matching files recursivelly (of any kind).

rmdir

View source

Create a new directory at this given path.

touch

View source

Create a file at this given path.

with_name

View source

with_suffix

View source

write_bytes

View source

Writes content as bytes.

write_text

View source

Writes content as str.

__ge__

View source

Return self>=value.

__gt__

View source

Return self>value.

__le__

View source

Return self<=value.

__lt__

View source

Return self<value.

__rtruediv__

View source

__truediv__

View source