@@ -321,11 +321,11 @@ * @brief Creates a path from the specified path components. * * @param components An array of components for the path * @return A new autoreleased OFString */ -+ (instancetype)pathWithComponents: (OFArray*)components; ++ (OFString*)pathWithComponents: (OFArray*)components; /*! * @brief Initializes an already allocated OFString from a UTF-8 encoded C * string. * @@ -880,10 +880,17 @@ * * @return The directory name of the path */ - (OFString*)stringByDeletingLastPathComponent; +/*! + * @brief Returns a new string with the file extension of the path removed. + * + * @return A new string with the file extension of the path removed + */ +- (OFString*)stringByDeletingPathExtension; + /*! * @brief Returns the path with relative sub paths resolved. * * @return The path with relative sub paths resolved */