Module: tf.compat.v1.gfile
Stay organized with collections
Save and categorize content based on your preferences.
Import router for file_io.
Classes
class FastGFile
: File I/O wrappers without thread locking.
class GFile
: File I/O wrappers without thread locking.
class Open
: File I/O wrappers without thread locking.
Functions
Copy(...)
: Copies data from oldpath
to newpath
.
DeleteRecursively(...)
: Deletes everything under dirname recursively.
Exists(...)
: Determines whether a path exists or not.
Glob(...)
: Returns a list of files that match the given pattern(s).
IsDirectory(...)
: Returns whether the path is a directory or not.
ListDirectory(...)
: Returns a list of entries contained within a directory.
MakeDirs(...)
: Creates a directory and all parent/intermediate directories.
MkDir(...)
: Creates a directory with the name 'dirname'.
Remove(...)
: Deletes the file located at 'filename'.
Rename(...)
: Rename or move a file / directory.
Stat(...)
: Returns file statistics for a given path.
Walk(...)
: Recursive directory tree generator for directories.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-01 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2020-10-01 UTC."],[],[],null,["# Module: tf.compat.v1.gfile\n\n\u003cbr /\u003e\n\n|----------------------------------------------------------------------------|\n| [TensorFlow 1 version](/versions/r1.15/api_docs/python/tf/compat/v1/gfile) |\n\nImport router for file_io.\n\nClasses\n-------\n\n[`class FastGFile`](../../../tf/compat/v1/gfile/FastGFile): File I/O wrappers without thread locking.\n\n[`class GFile`](../../../tf/io/gfile/GFile): File I/O wrappers without thread locking.\n\n[`class Open`](../../../tf/io/gfile/GFile): File I/O wrappers without thread locking.\n\nFunctions\n---------\n\n[`Copy(...)`](../../../tf/compat/v1/gfile/Copy): Copies data from `oldpath` to `newpath`.\n\n[`DeleteRecursively(...)`](../../../tf/compat/v1/gfile/DeleteRecursively): Deletes everything under dirname recursively.\n\n[`Exists(...)`](../../../tf/compat/v1/gfile/Exists): Determines whether a path exists or not.\n\n[`Glob(...)`](../../../tf/compat/v1/gfile/Glob): Returns a list of files that match the given pattern(s).\n\n[`IsDirectory(...)`](../../../tf/compat/v1/gfile/IsDirectory): Returns whether the path is a directory or not.\n\n[`ListDirectory(...)`](../../../tf/compat/v1/gfile/ListDirectory): Returns a list of entries contained within a directory.\n\n[`MakeDirs(...)`](../../../tf/compat/v1/gfile/MakeDirs): Creates a directory and all parent/intermediate directories.\n\n[`MkDir(...)`](../../../tf/compat/v1/gfile/MkDir): Creates a directory with the name 'dirname'.\n\n[`Remove(...)`](../../../tf/compat/v1/gfile/Remove): Deletes the file located at 'filename'.\n\n[`Rename(...)`](../../../tf/compat/v1/gfile/Rename): Rename or move a file / directory.\n\n[`Stat(...)`](../../../tf/compat/v1/gfile/Stat): Returns file statistics for a given path.\n\n[`Walk(...)`](../../../tf/compat/v1/gfile/Walk): Recursive directory tree generator for directories."]]