2016-06-27 01:53:10 +02:00
|
|
|
#pragma once
|
|
|
|
#ifndef MESSMER_CRYFS_LOCALSTATE_LOCALSTATEDIR_H_
|
|
|
|
#define MESSMER_CRYFS_LOCALSTATE_LOCALSTATEDIR_H_
|
|
|
|
|
|
|
|
#include <cpp-utils/macros.h>
|
|
|
|
#include <boost/filesystem/path.hpp>
|
|
|
|
#include "../config/CryConfig.h"
|
|
|
|
|
|
|
|
namespace cryfs {
|
|
|
|
|
|
|
|
class LocalStateDir final {
|
|
|
|
public:
|
2018-04-22 07:04:21 +02:00
|
|
|
LocalStateDir(boost::filesystem::path appDir);
|
|
|
|
|
|
|
|
boost::filesystem::path forFilesystemId(const CryConfig::FilesystemID &filesystemId) const;
|
|
|
|
boost::filesystem::path forBasedirMetadata() const;
|
2017-09-28 08:41:08 +02:00
|
|
|
|
2016-06-27 01:53:10 +02:00
|
|
|
private:
|
2018-04-22 07:04:21 +02:00
|
|
|
boost::filesystem::path _appDir;
|
2016-06-27 01:53:10 +02:00
|
|
|
|
|
|
|
static void _createDirIfNotExists(const boost::filesystem::path &path);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|