diff options
author | kwolekr <kwolekr@minetest.net> | 2015-04-26 01:24:19 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2015-04-26 15:08:54 -0400 |
commit | 7220ca906dfc804bd508336f5bed252bcec62ae0 (patch) | |
tree | 6a61f536227510a57b023019271084450042a7ad /src/filesys.h | |
parent | 45a77c8bf1a744edc1642d717579281cf988f8dd (diff) | |
download | minetest-7220ca906dfc804bd508336f5bed252bcec62ae0.tar.gz minetest-7220ca906dfc804bd508336f5bed252bcec62ae0.tar.bz2 minetest-7220ca906dfc804bd508336f5bed252bcec62ae0.zip |
Tests: Modularize unit testing
Split unit tests into separate files under src/unittest/
Give better unittest diagnostics
Clean up some code
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 |