@@ -15,11 +15,11 @@ #include "config.h" #import "OFString+PathAdditions.h" #import "OFArray.h" -#import "OFFileURLHandler.h" +#import "OFFileURIHandler.h" #import "OFOutOfRangeException.h" int _OFString_PathAdditions_reference; @@ -336,28 +336,30 @@ } - (bool)of_isDirectoryPath { return ([self hasSuffix: @"/"] || - [OFFileURLHandler of_directoryExistsAtPath: self]); + [OFFileURIHandler of_directoryExistsAtPath: self]); } -- (OFString *)of_pathToURLPathWithURLEncodedHost: (OFString **)URLEncodedHost +- (OFString *)of_pathToURIPathWithPercentEncodedHost: + (OFString **)percentEncodedHost { return self; } -- (OFString *)of_URLPathToPathWithURLEncodedHost: (OFString *)URLEncodedHost +- (OFString *)of_URIPathToPathWithPercentEncodedHost: + (OFString *)percentEncodedHost { OFString *path = self; if (path.length > 1 && [path hasSuffix: @"/"]) path = [path substringToIndex: path.length - 1]; return path; } -- (OFString *)of_pathComponentToURLPathComponent +- (OFString *)of_pathComponentToURIPathComponent { return self; } @end