CGII/framework/include/cgv/utils/dir.h

26 lines
596 B
C
Raw Normal View History

2018-05-17 13:50:03 +00:00
#pragma once
#include <string>
#include "lib_begin.h"
namespace cgv {
namespace utils {
namespace dir {
/// check if directory exists
CGV_API bool exists(const std::string& dir_name);
/// change current directory
CGV_API bool chdir(const std::string& dir_name);
/// create a new directory
CGV_API bool mkdir(const std::string& dir_name);
/// remove a directory
CGV_API bool rmdir(const std::string& dir_name);
/// get the current directory of the this process.
CGV_API std::string current();
}
}
}
#include <cgv/config/lib_end.h>