summaryrefslogtreecommitdiff
path: root/src/components/utils/src/file_system.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/utils/src/file_system.cc')
-rw-r--r--src/components/utils/src/file_system.cc5
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..c2a31c32b2 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();
+}