@@ -27,10 +27,15 @@ @implementation OFString (PathAdditions) + (OFString *)pathWithComponents: (OFArray *)components { return [components componentsJoinedByString: @"/"]; } + +- (bool)isAbsolutePath +{ + return [self hasPrefix: @"/"]; +} - (OFArray *)pathComponents { OFMutableArray OF_GENERIC(OFString *) *ret = [OFMutableArray array]; void *pool = objc_autoreleasePoolPush();