W3cubDocs

/TensorFlow Python

Module: tf.gfile

Module tf.gfile

Import router for file_io.

Members

Copy(...): Copies data from oldpath to newpath.

DeleteRecursively(...): Deletes everything under dirname recursively.

Exists(...): Determines whether a path exists or not.

class FastGFile: File I/O wrappers without thread locking.

class GFile: File I/O wrappers without thread locking.

Glob(...): Returns a list of files that match the given pattern.

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'.

class Open: File I/O wrappers without thread locking.

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.

Defined in tensorflow/python/platform/gfile.py.

© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/gfile