evict 0 byte files
This commit is contained in:
		| @@ -38,18 +38,6 @@ auto eviction::check_minimum_requirements(const std::string &file_path) | ||||
|  | ||||
|   auto check_file = utils::file::file{file_path}; | ||||
|  | ||||
|   auto opt_size = check_file.size(); | ||||
|   if (not opt_size.has_value()) { | ||||
|     utils::error::raise_error(function_name, utils::get_last_error_code(), | ||||
|                               file_path, "failed to get file size"); | ||||
|     return false; | ||||
|   } | ||||
|  | ||||
|   auto file_size{opt_size.value()}; | ||||
|   if (file_size == 0U) { | ||||
|     return false; | ||||
|   } | ||||
|  | ||||
|   auto reference_time = | ||||
|       check_file.get_time(config_.get_eviction_uses_accessed_time() | ||||
|                               ? utils::file::time_type::accessed | ||||
|   | ||||
		Reference in New Issue
	
	Block a user