STORMM Source Documentation
Loading...
Searching...
No Matches
directory_util.h
1// -*-c++-*-
2#ifndef STORMM_DIRECTORIES_H
3#define STORMM_DIRECTORIES_H
4
5#include <sstream>
6#include <sys/stat.h>
7#if defined(_WIN32) || defined(_WIN64) || defined(__CYGWIN__)
8# include <direct.h>
9#else
10# include <unistd.h>
11#endif
12#include <string>
13#include <vector>
14#include "copyright.h"
15#include "Constants/behavior.h"
16
17namespace stormm {
18namespace diskutil {
19
20using constants::ExceptionResponse;
21
22// \brief Wrapper for various mkdir() functions on different operating systems
27int localMkdir(const char* path, const mode_t mode);
28
34std::vector<std::string> stormmMkdir(const std::string &path, const mode_t mode = 0755);
35
39int localRmdir(const char* path);
40
45void stormmRmdir(const std::string &path, ExceptionResponse protocol = ExceptionResponse::WARN);
46
54void stormmBatchRmdir(const std::vector<std::string> &paths,
55 ExceptionResponse protocol = ExceptionResponse::WARN);
56
57}
58}
59
60#endif