X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fpbd%2Fpbd%2Ffilesystem.h;h=540efe35510de336323c6fc60faa17219d09e422;hb=7a6e86c9f9bef8db74b755db659794c4a859f36d;hp=3df168ea8473650993ae0a8a88a3d89bf4285e6d;hpb=6b1659a29bb9b5c4a31cb0aec371842df0585034;p=ardour.git diff --git a/libs/pbd/pbd/filesystem.h b/libs/pbd/pbd/filesystem.h index 3df168ea84..540efe3551 100644 --- a/libs/pbd/pbd/filesystem.h +++ b/libs/pbd/pbd/filesystem.h @@ -90,13 +90,6 @@ public: */ std::string leaf () const; - /** - * @returns the directory component of a path without any trailing - * path separator or an empty string if the path has no directory - * component(branch path). - */ - path branch_path () const; - private: std::string m_path; @@ -148,42 +141,6 @@ bool create_directory(const path & p); */ bool create_directories(const path & p); -/** - * Attempt to delete the file at path p as if by the glib function - * g_unlink. - * - * @return true if file existed prior to removing it, false if file - * at p did not exist. - * - * @throw filesystem_error if removing the file failed for any other - * reason other than the file did not exist. - */ -bool remove(const path & p); - -/** - * Renames from_path to to_path as if by the glib function g_rename. - */ -void rename (const path& from_path, const path& to_path); - -/** - * @return The substring of the filename component of the path, starting - * at the beginning of the filename up to but not including the last dot. - * - * boost::filesystem::path::basename differs from g_path_get_basename and - * ::basename and most other forms of basename in that it removes the - * extension from the filename if the filename has one. - */ -std::string basename (const path& p); - -/** - * @return If the filename contains a dot, return a substring of the - * filename starting the rightmost dot to the end of the string, otherwise - * an empty string. - * - * @param p a file path. - */ -std::string extension (const path& p); - } // namespace sys } // namespace PBD