diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-08 19:24:12 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-08 19:24:12 +0000 |
commit | d3477eedc113a2c126f36f41384b8921d610906a (patch) | |
tree | 68df921c4acf03878ae244db8350e2e96936c494 /src/filesystem/path.cc | |
parent | 598dba9d17838e92f89bcd3ec78c69cc4ce50044 (diff) |
updated filesystem, removed inifile, updated game and tga loader
minor cleanups
Diffstat (limited to 'src/filesystem/path.cc')
-rw-r--r-- | src/filesystem/path.cc | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/filesystem/path.cc b/src/filesystem/path.cc deleted file mode 100644 index 096825c..0000000 --- a/src/filesystem/path.cc +++ /dev/null @@ -1,33 +0,0 @@ -/* - filesystem/path.cc - This file is part of the Osirion project and is distributed under - the terms of the GNU General Public License version 2 -*/ - -// project headers -#include "filesystem/path.h" -#include "sys/sys.h" - -namespace filesystem -{ - -void Path::create(std::string path) -{ - std::string tmp(path); - if (tmp[tmp.size()-1] == '/') - tmp = tmp.substr(0, tmp.size() - 1); - - if (!sys::mkdir(tmp.c_str())) - // FIXME check error value - con_warn << "Could not create directory " << tmp << std::endl; - else - con_debug << "Directory created " << tmp << std::endl; -} - -bool Path::exists(std::string path) -{ - // FIXME make it work - return false; -} - -} |