LostTech.TensorFlow : API Documentation

Type tf.io.gfile

Namespace tensorflow

Public static methods

void copy(string src, string dst, bool overwrite)

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

object copy_dyn(object src, object dst, ImplicitContainer<T> overwrite)

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

bool exists(string path)

Determines whether a path exists or not.
Parameters
string path
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.

bool exists(int path)

Determines whether a path exists or not.
Parameters
int path
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.

bool exists(IEnumerable<object> path)

Determines whether a path exists or not.
Parameters
IEnumerable<object> path
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.

bool exists(Byte[] path)

Determines whether a path exists or not.
Parameters
Byte[] path
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.

bool exists(object path)

Determines whether a path exists or not.
Parameters
object path
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 path)

Determines whether a path exists or not.
Parameters
object path
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[] pattern)

Returns a list of files that match the given pattern(s).
Parameters
Byte[] pattern
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 pattern)

Returns a list of files that match the given pattern(s).
Parameters
string pattern
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 pattern)

Returns a list of files that match the given pattern(s).
Parameters
object pattern
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> pattern)

Returns a list of files that match the given pattern(s).
Parameters
IEnumerable<object> pattern
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(ValueTuple<IEnumerable<object>, object> pattern)

Returns a list of files that match the given pattern(s).
Parameters
ValueTuple<IEnumerable<object>, object> pattern
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 pattern)

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

object isdir(Byte[] path)

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

object isdir(string path)

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

object isdir_dyn(object path)

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

IList<object> listdir(string path)

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 path
string, path to a directory
Returns
IList<object>
[filename1, filename2,... filenameN] as strings

IList<object> listdir(Byte[] path)

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[] path
string, path to a directory
Returns
IList<object>
[filename1, filename2,... filenameN] as strings

object listdir_dyn(object path)

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 path
string, path to a directory
Returns
object
[filename1, filename2,... filenameN] as strings

void makedirs(Byte[] path)

Creates a directory and all parent/intermediate directories.

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

void makedirs(string path)

Creates a directory and all parent/intermediate directories.

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

object makedirs_dyn(object path)

Creates a directory and all parent/intermediate directories.

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

void mkdir(string path)

Creates a directory with the name given by 'path'.
Parameters
string path
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 path)

Creates a directory with the name given by 'path'.
Parameters
object path
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(Byte[] path)

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

void rename(string src, string dst, bool overwrite)

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

object rename_dyn(object src, object dst, ImplicitContainer<T> overwrite)

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

void rmtree(Byte[] path)

Deletes everything under path recursively.
Parameters
Byte[] path
string, a path

void rmtree(string path)

Deletes everything under path recursively.
Parameters
string path
string, a path

object rmtree_dyn(object path)

Deletes everything under path recursively.
Parameters
object path
string, a path

FileStatistics stat(object path)

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

FileStatistics stat(string path)

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

object stat_dyn(object path)

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

IEnumerator<object> walk(Byte[] top, bool topdown, object onerror)

Recursive directory tree generator for directories.
Parameters
Byte[] top
string, a Directory name
bool topdown
bool, Traverse pre order if True, post order if False.
object onerror
optional handler for errors. Should be a function, it will be called with the error as argument. Rethrowing the error aborts the walk. Errors that happen while listing directories are ignored.

IEnumerator<object> walk(string top, bool topdown, object onerror)

Recursive directory tree generator for directories.
Parameters
string top
string, a Directory name
bool topdown
bool, Traverse pre order if True, post order if False.
object onerror
optional handler for errors. Should be a function, it will be called with the error as argument. Rethrowing the error aborts the walk. Errors that happen while listing directories are ignored.

object walk_dyn(object top, ImplicitContainer<T> topdown, object onerror)

Recursive directory tree generator for directories.
Parameters
object top
string, a Directory name
ImplicitContainer<T> topdown
bool, Traverse pre order if True, post order if False.
object onerror
optional handler for errors. Should be a function, it will be called with the error as argument. Rethrowing the error aborts the walk. Errors that happen while listing directories are ignored.

Public properties

PythonFunctionContainer exists_fn get;

PythonFunctionContainer isdir_fn get;

PythonFunctionContainer listdir_fn get;

PythonFunctionContainer makedirs_fn get;

PythonFunctionContainer mkdir_fn get;

PythonFunctionContainer remove_fn get;

PythonFunctionContainer rename_fn get;

PythonFunctionContainer rmtree_fn get;