@@ -39,16 +39,28 @@ * It is not closed when the OFFile object is deallocated! * \return A new autoreleased OFFile */ + fileWithFileDescriptor: (int)fd; +/** + * \param path The path for which the components should be returned + * \return The components of the path + */ ++ (OFArray*)componentsOfPath: (OFString*)path; + /** * \param path The path for which the last component should be returned * \return The last component of the path */ + (OFString*)lastComponentOfPath: (OFString*)path; +/** + * \param path The path for which the directory name should be returned + * \return The directory name of the path + */ ++ (OFString*)directoryNameOfPath: (OFString*)path; + /** * \param path The path to check * \return A boolean whether there is a file at the specified path */ + (BOOL)fileExistsAtPath: (OFString*)path;