/// Tests for existence of a file
bool exists(const Path &path);
+/// Tests whether a path refers to an existing directory
+bool is_dir(const Path &paht);
+
/**
Gets information about a file. Returns 0 on success or -1 on error. This
version can be used to check for file existence and get information in one
Path getcwd();
+/// Returns the user's home directory
+Path get_home_dir();
+
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]==':'); }