diff options
Diffstat (limited to 'src/components/utils/src/file_system.cc')
-rw-r--r-- | src/components/utils/src/file_system.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/utils/src/file_system.cc b/src/components/utils/src/file_system.cc index 015dc25a22..9c619c8388 100644 --- a/src/components/utils/src/file_system.cc +++ b/src/components/utils/src/file_system.cc @@ -572,3 +572,8 @@ bool file_system::MoveFile(const std::string& src, const std::string& dst) { } return true; } + +std::string file_system::GetFileName(const std::string& full_path) { + fs::path p(full_path); + return p.filename().string(); +}
\ No newline at end of file |