diff options
Diffstat (limited to 'src/filesys.h')
-rw-r--r-- | src/filesys.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/filesys.h b/src/filesys.h index bfb340d85..7560d3c15 100644 --- a/src/filesys.h +++ b/src/filesys.h @@ -103,6 +103,10 @@ std::string RemoveLastPathComponent(const std::string &path, // this does not resolve symlinks and check for existence of directories. std::string RemoveRelativePathComponents(std::string path); +// Return the filename from a path or the entire path if no directory delimiter +// is found. +const char *GetFilenameFromPath(const char *path); + bool safeWriteToFile(const std::string &path, const std::string &content); }//fs |