1 #ifndef __JSYSTEM_JFILEJSYSTEM__
2 #define __JSYSTEM_JFILEJSYSTEM__
26 ls(
const std::string& dir)
28 DIR* top = opendir(dir.c_str());
32 for (dirent* i; (i = readdir(top)) != NULL; ) {
33 this->push_back(i->d_name);
49 inline int rename(
const std::string& inputFile,
54 ifstream in (inputFile .c_str(), ios::binary);
60 return remove(inputFile.c_str());
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary classes and methods for operating system calls.
int rename(const std::string &inputFile, const std::string &outputFile)
Rename file across file systems.
Auxiliary data structure to list files in directory.
ls(const std::string &dir)
Constructor.