|
| bool | utils::writeFile (const std::string &content, const char *path) |
| bool | utils::writeFile (const std::string &content, const char *path, size_t start, size_t end) |
| const char * | utils::validateDirectoryPath (const char *path) |
| bool | utils::isDir (const std::string &p) |
| std::string | utils::getFileExtension (const std::string &fpath) |
| http::HttpStatus | utils::checkFileAccess (const std::string &path, int modeMask, bool allowDirectory=false) |
| std::string | utils::joinPaths (const std::string &p1, const std::string &p2) |
| bool | utils::getFileStatus (std::string const &path, struct stat &buf) |
| | Simple wrapper for stat to check existence and get details.
|
| bool | utils::getDirectoryEntries (std::string const &path, std::vector< FileEntry > &entries) |
| | Reads a directory, stats all files, and returns them sorted by name. Uses only opendir/readdir/closedir/stat.
|