From 538aa4e5f226551d6a529b6d4e85c0cef4d862f7 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Mon, 18 Jan 2021 20:53:13 +0200 Subject: Better versioned file name for visited URLs --- src/visited.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/visited.c') diff --git a/src/visited.c b/src/visited.c index 6fcc23f7..f4769e97 100644 --- a/src/visited.c +++ b/src/visited.c @@ -74,7 +74,7 @@ void deinit_Visited(iVisited *d) { void save_Visited(const iVisited *d, const char *dirPath) { iString *line = new_String(); - iFile *f = newCStr_File(concatPath_CStr(dirPath, "visited2.txt")); + iFile *f = newCStr_File(concatPath_CStr(dirPath, "visited.2.txt")); if (open_File(f, writeOnly_FileMode | text_FileMode)) { lock_Mutex(d->mtx); iConstForEach(Array, i, &d->visited.values) { @@ -93,7 +93,7 @@ void save_Visited(const iVisited *d, const char *dirPath) { } void load_Visited(iVisited *d, const char *dirPath) { - iFile *f = newCStr_File(concatPath_CStr(dirPath, "visited2.txt")); + iFile *f = newCStr_File(concatPath_CStr(dirPath, "visited.2.txt")); if (open_File(f, readOnly_FileMode | text_FileMode)) { lock_Mutex(d->mtx); const iRangecc src = range_Block(collect_Block(readAll_File(f))); -- cgit v1.2.3