|
Webserv
|
#include "http/HttpStatus.hpp"#include <ctime>#include <string>#include <sys/stat.h>#include <vector>Go to the source code of this file.
Classes | |
| class | utils::TempFile |
| struct | utils::FileEntry |
Namespaces | |
| namespace | utils |
Functions | |
| bool | utils::writeFile (const std::string &content, const char *path) |
| bool | utils::isDir (const std::string &p) |
| const char * | utils::validateDirectoryPath (const char *path) |
| 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::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. | |
| bool | utils::getFileStatus (std::string const &path, struct stat &buf) |
| Simple wrapper for stat to check existence and get details. | |