X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffs%2Fdir.h;h=6fa49f95d89c6abf02e12735dc2c7e2a0a5664e6;hb=2a3d0cc4d8ef930ed5fc56c480df3c05967489a4;hp=53228ccd760ce233d235fbef7b13b4b965c5c28b;hpb=af94bc926e301e9b871dc18662b4fa6e5614fdbf;p=libs%2Fcore.git diff --git a/source/fs/dir.h b/source/fs/dir.h index 53228cc..6fa49f9 100644 --- a/source/fs/dir.h +++ b/source/fs/dir.h @@ -1,10 +1,3 @@ -/* $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_ @@ -15,6 +8,13 @@ Distributed under the LGPL 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);