29 lines
684 B
C
29 lines
684 B
C
|
#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<fusepp::FuseFile> createFile(const std::string &name, mode_t mode) override;
|
||
|
std::unique_ptr<fusepp::FuseDir> createDir(const std::string &name, mode_t mode) override;
|
||
|
void rmdir() override;
|
||
|
|
||
|
std::unique_ptr<std::vector<std::string>> children() const override;
|
||
|
|
||
|
private:
|
||
|
DISALLOW_COPY_AND_ASSIGN(CryDir);
|
||
|
};
|
||
|
|
||
|
} /* namespace cryfs */
|
||
|
|
||
|
#endif
|