mxnet
|
file system system interface More...
#include <io.h>
Public Member Functions | |
virtual | ~FileSystem () |
virtual destructor More... | |
virtual FileInfo | GetPathInfo (const URI &path)=0 |
get information about a path More... | |
virtual void | ListDirectory (const URI &path, std::vector< FileInfo > *out_list)=0 |
list files in a directory More... | |
virtual void | ListDirectoryRecursive (const URI &path, std::vector< FileInfo > *out_list) |
list files in a directory recursively using ListDirectory More... | |
virtual Stream * | Open (const URI &path, const char *const flag, bool allow_null=false)=0 |
open a stream More... | |
virtual SeekStream * | OpenForRead (const URI &path, bool allow_null=false)=0 |
open a seekable stream for read More... | |
Static Public Member Functions | |
static FileSystem * | GetInstance (const URI &path) |
get singleton of filesystem instance according to URI More... | |
file system system interface
|
inlinevirtual |
virtual destructor
|
static |
get singleton of filesystem instance according to URI
path | can be s3://..., hdfs://..., file://..., empty string(will return local) |
get information about a path
path | the path to the file |
|
pure virtual |
list files in a directory
path | to the file |
out_list | the output information about the files |
|
virtual |
list files in a directory recursively using ListDirectory
path | to the file |
out_list | the output information about the files |
|
pure virtual |
open a stream
path | path to file |
flag | can be "w", "r", "a |
allow_null | whether NULL can be returned, or directly report error |
|
pure virtual |
open a seekable stream for read
path | the path to the file |
allow_null | whether NULL can be returned, or directly report error |