ManaPlus
|
Functions | |
int | renameFile (const std::string &pFrom, const std::string &pTo) |
int | copyFile (const std::string &pFrom, const std::string &pTo) |
bool | existsLocal (const std::string &path) |
bool | loadTextFileLocal (const std::string &fileName, StringVect &lines) |
void | saveTextFile (const std::string &path, const std::string &name, const std::string &text) |
void | deleteFilesInDirectory (std::string path) |
void | enumFiles (StringVect &files, std::string path, const bool skipSymlinks) |
int Files::copyFile | ( | const std::string & | pFrom, |
const std::string & | pTo | ||
) |
void Files::deleteFilesInDirectory | ( | std::string | path | ) |
Definition at line 272 of file files.cpp.
References dirSeparator, pathJoin(), and VirtFs::remove().
void Files::enumFiles | ( | StringVect & | files, |
std::string | path, | ||
const bool | skipSymlinks | ||
) |
Definition at line 290 of file files.cpp.
References dirSeparator, and findLast().
bool Files::existsLocal | ( | const std::string & | path | ) |
Definition at line 209 of file files.cpp.
References findLast().
Referenced by ConfigManager::backupConfig(), VirtFs::FsDir::exists(), getPicturesDir(), VirtFs::FsDir::getRealDir(), Configuration::init(), Being::loadComment(), VirtFs::FsDir::loadFile(), VirtFs::mountDir(), VirtFs::mountDir2(), VirtFs::mountDirSilent(), VirtFs::mountDirSilent2(), VirtFs::mountZip(), VirtFs::mountZip2(), Font::openFont(), and VirtFs::FsDir::openInternal().
bool Files::loadTextFileLocal | ( | const std::string & | fileName, |
StringVect & | lines | ||
) |
Definition at line 229 of file files.cpp.
References fileName, and reportAlways.
Referenced by ConfigManager::backupConfig(), getPicturesDir(), Being::loadComment(), and UpdaterWindow::loadFile().
int Files::renameFile | ( | const std::string & | pFrom, |
const std::string & | pTo | ||
) |
Definition at line 134 of file files.cpp.
References VirtFs::remove().
Referenced by ConfigManager::backupConfig(), and Net::Download::downloadThread().
void Files::saveTextFile | ( | const std::string & | path, |
const std::string & | name, | ||
const std::string & | text | ||
) |
Definition at line 250 of file files.cpp.
References fileName, mkdir_r(), pathJoin(), and reportAlways.
Referenced by Being::saveComment(), and ActorManager::updateNameId().