#pragma once #ifndef CRYFS_LIB_CRYDIR_H_ #define CRYFS_LIB_CRYDIR_H_ #include "fusepp/FuseDir.h" #include "CryNode.h" namespace cryfs { class CryDir: public fusepp::FuseDir, CryNode { public: CryDir(CryDevice *device, const bf::path &path); virtual ~CryDir(); //TODO return type variance to CryFile/CryDir? std::unique_ptr createFile(const std::string &name, mode_t mode) override; std::unique_ptr createDir(const std::string &name, mode_t mode) override; void rmdir() override; std::unique_ptr> children() const override; private: DISALLOW_COPY_AND_ASSIGN(CryDir); }; } /* namespace cryfs */ #endif