Type tf.gfile
Namespace tensorflow
Methods
- Copy
 - Copy_dyn
 - DeleteRecursively
 - Exists
 - Exists_dyn
 - Glob
 - Glob
 - Glob
 - Glob
 - Glob_dyn
 - IsDirectory
 - IsDirectory
 - IsDirectory_dyn
 - ListDirectory
 - ListDirectory
 - ListDirectory_dyn
 - MakeDirs
 - MakeDirs
 - MakeDirs_dyn
 - MkDir
 - MkDir_dyn
 - Remove
 - Remove
 - Remove_dyn
 - Rename
 - Rename_dyn
 - Stat
 - Stat
 - Stat
 - Stat_dyn
 - Walk
 - Walk_dyn
 
Properties
Public static methods
void Copy(string oldpath, string newpath, bool overwrite)
Copies data from `oldpath` to `newpath`. 
			
				
		
	Parameters
- 
							
stringoldpath - string, name of the file who's contents need to be copied
 - 
							
stringnewpath - string, name of the file to which to copy to
 - 
							
booloverwrite - 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
- 
							
objectoldpath - string, name of the file who's contents need to be copied
 - 
							
objectnewpath - 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
- 
							
stringdirname - string, a path to a directory
 
bool Exists(object filename)
Determines whether a path exists or not. 
			
				
			
				
		
	Parameters
- 
							
objectfilename - 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
- 
							
objectfilename - 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
- 
							
objectfilename - 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
- 
							
stringfilename - 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
- 
							
objectfilename - 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
- 
							
stringdirname - 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
- 
							
objectdirname - 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
- 
							
stringdirname - 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
- 
							
objectdirname - 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
- 
							
stringdirname - 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
- 
							
objectdirname - string, name of the directory to be created
 
void MkDir(string dirname)
Creates a directory with the name 'dirname'. 
			
				
		
	Parameters
- 
							
stringdirname - 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
- 
							
objectdirname - 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
- 
							
stringfilename - 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
- 
							
objectfilename - string, a filename
 
void Rename(string oldname, string newname, bool overwrite)
Rename or move a file / directory. 
			
				
		
	Parameters
- 
							
stringoldname - string, pathname for a file
 - 
							
stringnewname - string, pathname to which the file needs to be moved
 - 
							
booloverwrite - 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
- 
							
objectoldname - string, pathname for a file
 - 
							
objectnewname - 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
- 
							
stringfilename - 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
- 
							
objectfilename - 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
- 
							
objectfilename - 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
- 
							
objecttop - string, a Directory name
 - 
							
boolin_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
- 
							
objecttop - 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.