Renamed file_exists()->path_exists()

This commit is contained in:
gabime
2019-10-25 15:56:23 +03:00
parent c40555c0ac
commit dbe5c17a96
7 changed files with 10 additions and 23 deletions

View File

@@ -88,11 +88,12 @@ template<typename Mutex>
SPDLOG_INLINE void rotating_file_sink<Mutex>::rotate_()
{
using details::os::filename_to_str;
using details::os::path_exists;
file_helper_.close();
for (auto i = max_files_; i > 0; --i)
{
filename_t src = calc_filename(base_filename_, i - 1);
if (!details::file_helper::file_exists(src))
if (!path_exists(src))
{
continue;
}