-/* $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);