7#ifndef DMLC_IO_LOCAL_FILESYS_H_
8#define DMLC_IO_LOCAL_FILESYS_H_
31 virtual void ListDirectory(
const URI &path, std::vector<FileInfo> *out_list);
41 const char*
const flag,
interface of i/o stream that support seek
Definition io.h:109
local file system
Definition local_filesys.h:16
virtual ~LocalFileSystem()
destructor
Definition local_filesys.h:19
static LocalFileSystem * GetInstance(void)
get a singleton of LocalFileSystem when needed
Definition local_filesys.h:54
virtual void ListDirectory(const URI &path, std::vector< FileInfo > *out_list)
list files in a directory
Definition local_filesys.cc:99
virtual FileInfo GetPathInfo(const URI &path)
get information about a path
Definition local_filesys.cc:69
virtual SeekStream * OpenForRead(const URI &path, bool allow_null)
open a seekable stream for read
Definition local_filesys.cc:213
virtual SeekStream * Open(const URI &path, const char *const flag, bool allow_null)
open a stream, will report error and exit if bad thing happens NOTE: the IStream can continue to work...
Definition local_filesys.cc:147
Utilities to manipulate files.
namespace for dmlc
Definition array_view.h:12