24 lines
542 B
C
24 lines
542 B
C
|
#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:
|
||
|
static boost::filesystem::path forFilesystemId(const CryConfig::FilesystemID &filesystemId);
|
||
|
|
||
|
private:
|
||
|
LocalStateDir(); // static functions only
|
||
|
|
||
|
static void _createDirIfNotExists(const boost::filesystem::path &path);
|
||
|
};
|
||
|
}
|
||
|
|
||
|
|
||
|
#endif
|