Lines Matching full:filesystem

5 #include <filesystem>
14 * @brief Interface to the filesystem operations that eStoraged needs.
15 * @details This class is used to mock out the filesystem operations.
29 /** @brief Runs the mkfs command to create the filesystem.
42 * @param[in] source - device where the filesystem is located.
43 * @param[in] target - path to where the filesystem should be mounted.
46 * @param[in] data - options for specific filesystem type, can be NULL
59 * @param[in] target - path location where the filesystem is mounted.
66 /** @brief Wrapper around std::filesystem::create_directory.
73 virtual bool createDirectory(const std::filesystem::path& p) = 0;
75 /** @brief Wrapper around std::filesystem::remove.
82 virtual bool removeDirectory(const std::filesystem::path& p) = 0;
84 /** @brief Wrapper around std::filesystem::is_directory
90 virtual bool directoryExists(const std::filesystem::path& p) = 0;
95 * @param[in] logicalVolumePath - path to device with filesystem
104 /** @class Filesystem
107 class Filesystem : public FilesystemInterface class
110 ~Filesystem() override = default;
111 Filesystem() = default;
112 Filesystem(const Filesystem&) = delete;
113 Filesystem& operator=(const Filesystem&) = delete;
115 Filesystem(Filesystem&&) = delete;
116 Filesystem& operator=(Filesystem&&) = delete;
153 bool createDirectory(const std::filesystem::path& p) override in createDirectory()
155 return std::filesystem::create_directory(p); in createDirectory()
158 bool removeDirectory(const std::filesystem::path& p) override in removeDirectory()
160 return std::filesystem::remove(p); in removeDirectory()
163 bool directoryExists(const std::filesystem::path& p) override in directoryExists()
165 return std::filesystem::is_directory(std::filesystem::status(p)); in directoryExists()