libcryfs/src/cryfs_lib/CryDir.cpp

48 lines
895 B
C++
Raw Normal View History

#include "CryDir.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <dirent.h>
#include "fspp/fuse/FuseErrnoException.h"
#include "CryDevice.h"
#include "CryFile.h"
//TODO Get rid of this in favor of exception hierarchy
using fspp::fuse::CHECK_RETVAL;
2014-12-07 08:57:23 +01:00
using fspp::fuse::FuseErrnoException;
namespace bf = boost::filesystem;
using std::unique_ptr;
using std::make_unique;
using std::string;
using std::vector;
namespace cryfs {
2014-12-07 08:57:23 +01:00
CryDir::CryDir() {
}
CryDir::~CryDir() {
}
2014-11-16 00:05:28 +01:00
unique_ptr<fspp::File> CryDir::createFile(const string &name, mode_t mode) {
2014-12-07 08:57:23 +01:00
throw FuseErrnoException(ENOTSUP);
}
2014-11-16 00:05:28 +01:00
unique_ptr<fspp::Dir> CryDir::createDir(const string &name, mode_t mode) {
2014-12-07 08:57:23 +01:00
throw FuseErrnoException(ENOTSUP);
}
void CryDir::rmdir() {
2014-12-07 08:57:23 +01:00
throw FuseErrnoException(ENOTSUP);
}
unique_ptr<vector<string>> CryDir::children() const {
2014-12-07 08:57:23 +01:00
throw FuseErrnoException(ENOTSUP);
}
2014-12-07 08:57:23 +01:00
}