X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffs%2Fdir.h;h=74d2d2cd6339b0118747779b9c660f03e06361e3;hb=c73d8eee1982ba4982518d3f28651f848f130730;hp=53228ccd760ce233d235fbef7b13b4b965c5c28b;hpb=af94bc926e301e9b871dc18662b4fa6e5614fdbf;p=libs%2Fcore.git diff --git a/source/fs/dir.h b/source/fs/dir.h index 53228cc..74d2d2c 100644 --- a/source/fs/dir.h +++ b/source/fs/dir.h @@ -1,20 +1,21 @@ -/* $Id$ - -This file is part of libmspfs -Copyright © 2006-2008 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_FS_DIR_H_ #define MSP_FS_DIR_H_ #include +#include #include #include "path.h" namespace Msp { namespace FS { +class not_a_directory: public std::runtime_error +{ +public: + not_a_directory(const Path &); + virtual ~not_a_directory() throw() { } +}; + /// Creates a directory void mkdir(const Path &path, int mode);