fs/Path: add method IsAbsolute()

This commit is contained in:
Max Kellermann
2013-10-14 22:38:29 +02:00
parent 47d655ea7f
commit 9508ea982b
12 changed files with 47 additions and 12 deletions

View File

@@ -118,7 +118,7 @@ ParsePath(const char *path, Error &error)
return Path::Null();
return Path::Build(home, path2);
} else if (!g_path_is_absolute(path)) {
} else if (!Path::IsAbsoluteUTF8(path)) {
error.Format(path_domain,
"not an absolute path: %s", path);
return Path::Null();