Questions about TFX? Join us at Google I/O!


Pluggable file I/O interface for use in TFX system and components.


copy(...): Copy a file from the source to the destination.

exists(...): Return whether a path exists.

glob(...): Return the paths that match a glob pattern.

isdir(...): Return whether a path is a directory.

listdir(...): Return the list of files in a directory.

makedirs(...): Make a directory at the given path, recursively creating parents.

mkdir(...): Make a directory at the given path; parent directory must exist.

open(...): Open a file at the given path.

remove(...): Remove the file at the given path.

rename(...): Rename a source file to a destination path.

rmtree(...): Remove the given directory and its recursive contents.

stat(...): Return the stat descriptor for a given file path.

walk(...): Return an iterator walking a directory tree.

Type Aliases

PathType: The central part of internal API.