]> git.tdb.fi Git - libs/core.git/blobdiff - source/fs/dir.h
Add a missing #include
[libs/core.git] / source / fs / dir.h
index 53228ccd760ce233d235fbef7b13b4b965c5c28b..74d2d2cd6339b0118747779b9c660f03e06361e3 100644 (file)
@@ -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 <list>
+#include <stdexcept>
 #include <string>
 #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);