Path dirname(const Path &p)
{
+ if(p.size()==1)
+ {
+ if(p.is_absolute())
+ return p;
+ return ".";
+ }
return p.subpath(0, p.size()-1);
}
Path readlink(const Path &link)
{
#ifdef WIN32
+ (void)link;
throw Exception("No symbolic links on win32");
#else
char buf[4096];