MCPcopy Create free account
hub / github.com/OpenCppCoverage/OpenCppCoverage / GetLastWriteTime

Method GetLastWriteTime

CppCoverage/FileSystem.cpp:26–33  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

24{
25 //----------------------------------------------------------------------------
26 boost::optional<std::filesystem::file_time_type>
27 FileSystem::GetLastWriteTime(const std::filesystem::path& path) const
28 {
29 std::error_code error;
30 auto time = std::filesystem::last_write_time(path, error);
31
32 return error ? boost::optional<std::filesystem::file_time_type>{} : time;
33 }
34}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected