32 lines
644 B
C++
32 lines
644 B
C++
#pragma once
|
|
#ifndef CRYFS_LIB_CRYDIR_H_
|
|
#define CRYFS_LIB_CRYDIR_H_
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
#include "CryNode.h"
|
|
#include "utils/macros.h"
|
|
|
|
namespace cryfs {
|
|
class CryDevice;
|
|
class CryOpenDir;
|
|
|
|
class CryDir: public CryNode {
|
|
public:
|
|
CryDir(CryDevice *device, const bf::path &path);
|
|
virtual ~CryDir();
|
|
|
|
std::unique_ptr<CryFile> createFile(const std::string &name, mode_t mode);
|
|
std::unique_ptr<CryDir> createDir(const std::string &name, mode_t mode);
|
|
void rmdir();
|
|
|
|
std::unique_ptr<CryOpenDir> opendir() const;
|
|
private:
|
|
DISALLOW_COPY_AND_ASSIGN(CryDir);
|
|
};
|
|
|
|
} /* namespace cryfs */
|
|
|
|
#endif /* CRYFS_LIB_CRYDIR_H_ */
|