@@ -135,10 +135,20 @@ * @brief Returns the URL as a string. * * @return The URL as a string */ - (OFString *)string; + +/*! + * @brief Returns the local file system representation for a file URL. + * + * This only exists for URLs with the file scheme and throws an exception + * otherwise. + * + * @return The local file system representation for a file URL + */ +- (nullable OFString *)fileSystemRepresentation; @end OF_ASSUME_NONNULL_END #import "OFMutableURL.h"