|
crawlserv++
[under development]
Application for crawling and analyzing textual content of websites.
|
#include "../Main/Exception.hpp"#include "Portability/filesystem.h"#include <algorithm>#include <cstdint>#include <iterator>#include <string>#include <string_view>#include <vector>

Go to the source code of this file.
Classes | |
| class | crawlservpp::Helper::FileSystem::Exception |
| Class for file system exceptions. More... | |
Namespaces | |
| crawlservpp::Helper::FileSystem | |
| Namespace for global file system helper functions. | |
Existence and Validity | |
| bool | crawlservpp::Helper::FileSystem::exists (std::string_view path) |
| Checks whether the specified path exists. More... | |
| bool | crawlservpp::Helper::FileSystem::isValidDirectory (std::string_view path) |
| Checks whether the given path points to a valid directory. More... | |
| bool | crawlservpp::Helper::FileSystem::isValidFile (std::string_view path) |
| Checks whether the given path points to a valid file. More... | |
Paths and Directories | |
| char | crawlservpp::Helper::FileSystem::getPathSeparator () |
| Gets the preferred separator for file paths in the current operating system. More... | |
| std::vector< std::string > | crawlservpp::Helper::FileSystem::listFilesInPath (std::string_view pathToDir, std::string_view fileExtension) |
| Lists all files with the given extension in the given directory and its subdirectories. More... | |
| bool | crawlservpp::Helper::FileSystem::contains (std::string_view pathToDir, std::string_view pathToCheck) |
| Checks whether the given path is located inside the given directory. More... | |
| void | crawlservpp::Helper::FileSystem::createDirectory (std::string_view pathToDir) |
| Creates a directory at the given path. More... | |
| void | crawlservpp::Helper::FileSystem::createDirectoryIfNotExists (std::string_view pathToDir) |
| Creates a directory at the given path, if it does not exist already. More... | |
| void | crawlservpp::Helper::FileSystem::clearDirectory (std::string_view pathToDir) |
| Deletes all files and folders in the given directory. More... | |
Disk Space | |
| std::uintmax_t | crawlservpp::Helper::FileSystem::getFreeSpace (std::string_view path) |
| Gets the available disk space at the given location in bytes. More... | |