]> git.tdb.fi Git - libs/core.git/blobdiff - source/fs/dir.h
Exception rework for fs components
[libs/core.git] / source / fs / dir.h
index 53228ccd760ce233d235fbef7b13b4b965c5c28b..6fa49f95d89c6abf02e12735dc2c7e2a0a5664e6 100644 (file)
@@ -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);