diff options
author | Stijn Buys <ingar@osirion.org> | 2007-12-17 14:47:30 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2007-12-17 14:47:30 +0000 |
commit | 09f307b6cb4f7c69e5b0685acc0bdd18e9d57d40 (patch) | |
tree | 08c5c8e1e516413278db3817dd89749cc3dbdac3 /src/common/path.h | |
parent | 8f1e895de4986e3a953023b31840210c5555856e (diff) |
home directory creation
Diffstat (limited to 'src/common/path.h')
-rw-r--r-- | src/common/path.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/common/path.h b/src/common/path.h new file mode 100644 index 0000000..43b07d2 --- /dev/null +++ b/src/common/path.h @@ -0,0 +1,26 @@ +/* + common/path.h + This file is part of the Osirion project and is distributed under + the terms of the GNU General Public License version 2 +*/ + +#ifndef __INCLUDED_PATH_H__ +#define __INCLUDED_PATH_H__ + +// C++ headers +#include <string> +#include <fstream> + +namespace common { + +/// a class to create directories +class Path +{ +public: + static bool exists(std::string path); + static void create(std::string path); +}; // class Path + +} // namespace common + +#endif // __INCLUDED_PATH_H__ |