From 7220ca906dfc804bd508336f5bed252bcec62ae0 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Sun, 26 Apr 2015 01:24:19 -0400 Subject: Tests: Modularize unit testing Split unit tests into separate files under src/unittest/ Give better unittest diagnostics Clean up some code --- src/filesys.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/filesys.h') 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 -- cgit v1.2.3