X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Futils.h;h=8139a7e4c073f4f7d8640608ae85b4cce5b79e4e;hp=db6a32c74fcc684369f9345486bcabde28a02939;hb=e6fec68039fb5212993d687d352c540e407e6d96;hpb=3004842aa3281f26137c7332089068da7edb34af diff --git a/source/utils.h b/source/utils.h index db6a32c..8139a7e 100644 --- a/source/utils.h +++ b/source/utils.h @@ -1,12 +1,12 @@ /* $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 #include @@ -74,6 +74,9 @@ Path getcwd(); /// 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]==':'); }