LostTech.TensorFlow : API Documentation

Type tf.gfile

Namespace tensorflow

Public static methods

void Copy(string oldpath, string newpath, bool overwrite)

Copies data from `oldpath` to `newpath`.
Parameters
string oldpath
string, name of the file who's contents need to be copied
string newpath
string, name of the file to which to copy to
bool overwrite
boolean, if false it's an error for `newpath` to be occupied by an existing file.

object Copy_dyn(object oldpath, object newpath, ImplicitContainer<T> overwrite)

Copies data from `oldpath` to `newpath`.
Parameters
object oldpath
string, name of the file who's contents need to be copied
object newpath
string, name of the file to which to copy to
ImplicitContainer<T> overwrite
boolean, if false it's an error for `newpath` to be occupied by an existing file.

void DeleteRecursively(string dirname)

Deletes everything under dirname recursively.
Parameters
string dirname
string, a path to a directory

bool Exists(object filename)

Determines whether a path exists or not.
Parameters
object filename
string, a path
Returns
bool
True if the path exists, whether it's a file or a directory. False if the path does not exist and there are no filesystem errors.

object Exists_dyn(object filename)

Determines whether a path exists or not.
Parameters
object filename
string, a path
Returns
object
True if the path exists, whether it's a file or a directory. False if the path does not exist and there are no filesystem errors.

IList<object> Glob(Byte[] filename)

Returns a list of files that match the given pattern(s).
Parameters
Byte[] filename
string or iterable of strings. The glob pattern(s).
Returns
IList<object>
A list of strings containing filenames that match the given pattern(s).

IList<object> Glob(IEnumerable<object> filename)

Returns a list of files that match the given pattern(s).
Parameters
IEnumerable<object> filename
string or iterable of strings. The glob pattern(s).
Returns
IList<object>
A list of strings containing filenames that match the given pattern(s).

IList<object> Glob(object filename)

Returns a list of files that match the given pattern(s).
Parameters
object filename
string or iterable of strings. The glob pattern(s).
Returns
IList<object>
A list of strings containing filenames that match the given pattern(s).

IList<object> Glob(string filename)

Returns a list of files that match the given pattern(s).
Parameters
string filename
string or iterable of strings. The glob pattern(s).
Returns
IList<object>
A list of strings containing filenames that match the given pattern(s).

object Glob_dyn(object filename)

Returns a list of files that match the given pattern(s).
Parameters
object filename
string or iterable of strings. The glob pattern(s).
Returns
object
A list of strings containing filenames that match the given pattern(s).

object IsDirectory(string dirname)

Returns whether the path is a directory or not.
Parameters
string dirname
string, path to a potential directory
Returns
object
True, if the path is a directory; False otherwise

object IsDirectory(Byte[] dirname)

Returns whether the path is a directory or not.
Parameters
Byte[] dirname
string, path to a potential directory
Returns
object
True, if the path is a directory; False otherwise

object IsDirectory_dyn(object dirname)

Returns whether the path is a directory or not.
Parameters
object dirname
string, path to a potential directory
Returns
object
True, if the path is a directory; False otherwise

IList<object> ListDirectory(Byte[] dirname)

Returns a list of entries contained within a directory.

The list is in arbitrary order. It does not contain the special entries "." and "..".
Parameters
Byte[] dirname
string, path to a directory
Returns
IList<object>
[filename1, filename2,... filenameN] as strings

IList<object> ListDirectory(string dirname)

Returns a list of entries contained within a directory.

The list is in arbitrary order. It does not contain the special entries "." and "..".
Parameters
string dirname
string, path to a directory
Returns
IList<object>
[filename1, filename2,... filenameN] as strings

object ListDirectory_dyn(object dirname)

Returns a list of entries contained within a directory.

The list is in arbitrary order. It does not contain the special entries "." and "..".
Parameters
object dirname
string, path to a directory
Returns
object
[filename1, filename2,... filenameN] as strings

void MakeDirs(string dirname)

Creates a directory and all parent/intermediate directories.

It succeeds if dirname already exists and is writable.
Parameters
string dirname
string, name of the directory to be created

void MakeDirs(Byte[] dirname)

Creates a directory and all parent/intermediate directories.

It succeeds if dirname already exists and is writable.
Parameters
Byte[] dirname
string, name of the directory to be created

object MakeDirs_dyn(object dirname)

Creates a directory and all parent/intermediate directories.

It succeeds if dirname already exists and is writable.
Parameters
object dirname
string, name of the directory to be created

void MkDir(string dirname)

Creates a directory with the name 'dirname'.
Parameters
string dirname
string, name of the directory to be created Notes: The parent directories need to exist. Use recursive_create_dir instead if there is the possibility that the parent dirs don't exist.

object MkDir_dyn(object dirname)

Creates a directory with the name 'dirname'.
Parameters
object dirname
string, name of the directory to be created Notes: The parent directories need to exist. Use recursive_create_dir instead if there is the possibility that the parent dirs don't exist.

void Remove(string filename)

Deletes the file located at 'filename'.
Parameters
string filename
string, a filename

void Remove(Byte[] filename)

Deletes the file located at 'filename'.
Parameters
Byte[] filename
string, a filename

object Remove_dyn(object filename)

Deletes the file located at 'filename'.
Parameters
object filename
string, a filename

void Rename(string oldname, string newname, bool overwrite)

Rename or move a file / directory.
Parameters
string oldname
string, pathname for a file
string newname
string, pathname to which the file needs to be moved
bool overwrite
boolean, if false it's an error for `newname` to be occupied by an existing file.

object Rename_dyn(object oldname, object newname, ImplicitContainer<T> overwrite)

Rename or move a file / directory.
Parameters
object oldname
string, pathname for a file
object newname
string, pathname to which the file needs to be moved
ImplicitContainer<T> overwrite
boolean, if false it's an error for `newname` to be occupied by an existing file.

FileStatistics Stat(string filename)

Returns file statistics for a given path.
Parameters
string filename
string, path to a file
Returns
FileStatistics
FileStatistics struct that contains information about the path

FileStatistics Stat(Byte[] filename)

Returns file statistics for a given path.
Parameters
Byte[] filename
string, path to a file
Returns
FileStatistics
FileStatistics struct that contains information about the path

FileStatistics Stat(object filename)

Returns file statistics for a given path.
Parameters
object filename
string, path to a file
Returns
FileStatistics
FileStatistics struct that contains information about the path

object Stat_dyn(object filename)

Returns file statistics for a given path.
Parameters
object filename
string, path to a file
Returns
object
FileStatistics struct that contains information about the path

IEnumerator<ValueTuple<object, IList<object>, object>> Walk(object top, bool in_order)

Recursive directory tree generator for directories.
Parameters
object top
string, a Directory name
bool in_order
bool, Traverse in order if True, post order if False. Errors that happen while listing directories are ignored.

object Walk_dyn(object top, ImplicitContainer<T> in_order)

Recursive directory tree generator for directories.
Parameters
object top
string, a Directory name
ImplicitContainer<T> in_order
bool, Traverse in order if True, post order if False. Errors that happen while listing directories are ignored.

Public properties

PythonFunctionContainer DeleteRecursively_fn get;

PythonFunctionContainer Exists_fn get;

PythonFunctionContainer IsDirectory_fn get;

PythonFunctionContainer ListDirectory_fn get;

PythonFunctionContainer MakeDirs_fn get;

PythonFunctionContainer MkDir_fn get;

PythonFunctionContainer Remove_fn get;

PythonFunctionContainer Rename_fn get;