/* $Id$
-This file is part of libmsppath
-Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
+This file is part of libmspfs
+Copyright © 2006-2008 Mikko Rasa, Mikkosoft Productions
Distributed under the LGPL
*/
-#ifndef MSP_PATH_UTILS_H_
-#define MSP_PATH_UTILS_H_
+#ifndef MSP_FS_UTILS_H_
+#define MSP_FS_UTILS_H_
#include <sys/stat.h>
#include <list>
/// Returns the user's home directory
Path get_home_dir();
+/// Changes the current working directory
+void chdir(const Path &);
+
inline bool is_windows_drive(const std::string &p)
{ return (p.size()==2 && ((p[0]>='A' && p[0]<='Z') || (p[0]>='a' && p[0]<='z')) && p[1]==':'); }