]> git.tdb.fi Git - libs/core.git/blobdiff - source/fs/dir.h
Add a missing #include
[libs/core.git] / source / fs / dir.h
index 5544a3179b912e9d7f14a4687095aaeabd7a547d..74d2d2cd6339b0118747779b9c660f03e06361e3 100644 (file)
@@ -2,12 +2,20 @@
 #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);