|
| static QString | fileName (const QString &path) |
| | Extract the basename from a file path.
|
| |
| static QString | dirName (const QString &path) |
| | Extract the directory portion from a file path.
|
| |
| static QString | extension (const QString &path) |
| | Extract the file extension from a file path.
|
| |
| static QString | trimTrailingSlash (const QString &path) |
| | Remove a trailing directory separator from a path.
|
| |
| static QString | combine (const QString &p1, const QString &p2) |
| | Combine two path segments into a normalized path.
|
| |
| static QString | combine (const QString &p1, const QString &p2, const QString &p3) |
| | Combine three path segments into a normalized path.
|
| |
| static QString | combine (const QString &p1, const QString &p2, const QString &p3, const QString &p4) |
| | Combine four path segments into a normalized path.
|
| |
| static QString | combine (const QString &p1, const QString &p2, const QString &p3, const QString &p4, const QString &p5) |
| | Combine five path segments into a normalized path.
|
| |
| static QString | combine (const QString &p1, const QString &p2, const QString &p3, const QString &p4, const QString &p5, const QString &p6) |
| | Combine six path segments into a normalized path.
|
| |
| static QString | combine (const QString &p1, const QString &p2, const QString &p3, const QString &p4, const QString &p5, const QString &p6, const QString &p7) |
| | Combine seven path segments into a normalized path.
|
| |
| static QString | combine (const QStringList &parts) |
| | Combine a list of path segments into a normalized path.
|
| |
| static QFileInfo | which (const QString &basename) |
| | Find the first executable in PATH matching a basename.
|
| |
| static QString | popLevel (const QString &path) |
| | Return the given directory with one level removed.
|
| |
PathUtil.
Some static helper methods for files. Much of the functionallity in here has been overtaken by the QFileInfo native Qt object.
However, the extremely useful combine() method will combine many strings into a well-formatted path name.
Stephen Punak, July 04 2019
Static helper methods for filesystem path manipulation.
Definition at line 21 of file pathutil.h.