Skip to content

Commit

Permalink
fix_module_list
Browse files Browse the repository at this point in the history
  • Loading branch information
yujincheng08 authored and sn-o-w committed Jan 14, 2021
1 parent fd5739b commit 517f5b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions edxp-core/src/main/cpp/main/src/config_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,13 @@ namespace edxp {

fs::file_time_type ConfigManager::GetLastWriteTime() const {
auto config_path = GetConfigPath();
auto list_path = GetConfigPath("modules.list");
auto blacklist_path = GetConfigPath("blacklist");
auto whitelist_path = GetConfigPath("whitelist");
return std::max({path_exists<true>(config_path) ? fs::last_write_time(config_path)
: fs::file_time_type{},
path_exists<true>(list_path) ? fs::last_write_time(list_path)
: fs::file_time_type{},
path_exists<true>(blacklist_path) ? fs::last_write_time(blacklist_path)
: fs::file_time_type{},
path_exists<true>(whitelist_path) ? fs::last_write_time(whitelist_path)
Expand Down

0 comments on commit 517f5b6

Please sign in to comment.