mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-08 21:18:03 -05:00
19 lines
390 B
C++
19 lines
390 B
C++
/*
|
|
* ValueInterface.cpp
|
|
*
|
|
*/
|
|
|
|
#include "bigint.h"
|
|
#include "ValueInterface.h"
|
|
|
|
#include <sys/stat.h>
|
|
|
|
void ValueInterface::check_setup(const string& directory)
|
|
{
|
|
struct stat sb;
|
|
if (stat(directory.c_str(), &sb) != 0)
|
|
throw runtime_error(directory + " does not exist");
|
|
if (not (sb.st_mode & S_IFDIR))
|
|
throw runtime_error(directory + " is not a directory");
|
|
}
|