summaryrefslogtreecommitdiff
path: root/src/components/utils/include/utils/file_system.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/utils/include/utils/file_system.h')
-rw-r--r--src/components/utils/include/utils/file_system.h28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/components/utils/include/utils/file_system.h b/src/components/utils/include/utils/file_system.h
index d68ec484f..a132837ca 100644
--- a/src/components/utils/include/utils/file_system.h
+++ b/src/components/utils/include/utils/file_system.h
@@ -1,4 +1,4 @@
-/**
+/*
* Copyright (c) 2013, Ford Motor Company
* All rights reserved.
*
@@ -234,6 +234,32 @@ const std::string ConvertPathForURL(const std::string& path);
*/
bool CreateFile(const std::string& path);
+/**
+ * @brief Get modification time of file
+ * @param path Path to file
+ * @return Modification time in nanoseconds
+ */
+uint64_t GetFileModificationTime(const std::string& path);
+
+/**
+ * @brief Copy file from source to destination
+ *
+ * @param src Source file path
+ * @param dst Destination file path
+ * @return if result success return true
+*/
+bool CopyFile(const std::string& src,
+ const std::string& dst);
+
+/**
+ * @brief Move file from source to destination
+ *
+ * @param src Source file path
+ * @param dst Destination file path
+ * @return if result success return true
+*/
+bool MoveFile(const std::string& src,
+ const std::string& dst);
void remove_directory_content(const std::string& directory_name);
} // namespace file_system