@@ -1310,10 +1310,18 @@ OFMutableIRI *IRI = [[self mutableCopy] autorelease]; [IRI appendPathComponent: component isDirectory: isDirectory]; [IRI makeImmutable]; return IRI; } + +- (OFIRI *)IRIByDeletingLastPathComponent +{ + OFMutableIRI *IRI = [[self mutableCopy] autorelease]; + [IRI deleteLastPathComponent]; + [IRI makeImmutable]; + return IRI; +} - (OFIRI *)IRIByStandardizingPath { OFMutableIRI *IRI = [[self mutableCopy] autorelease]; [IRI standardizePath];