diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-01-18 20:53:13 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-01-18 20:53:13 +0200 |
commit | 538aa4e5f226551d6a529b6d4e85c0cef4d862f7 (patch) | |
tree | 458de015c2ea13fee38aad0efa01f1135d0bb22e /src | |
parent | d828264ebb1f021a7e4bb3abbb5719dc637c2fa3 (diff) |
Better versioned file name for visited URLs
Diffstat (limited to 'src')
-rw-r--r-- | src/visited.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { | |||
74 | 74 | ||
75 | void save_Visited(const iVisited *d, const char *dirPath) { | 75 | void save_Visited(const iVisited *d, const char *dirPath) { |
76 | iString *line = new_String(); | 76 | iString *line = new_String(); |
77 | iFile *f = newCStr_File(concatPath_CStr(dirPath, "visited2.txt")); | 77 | iFile *f = newCStr_File(concatPath_CStr(dirPath, "visited.2.txt")); |
78 | if (open_File(f, writeOnly_FileMode | text_FileMode)) { | 78 | if (open_File(f, writeOnly_FileMode | text_FileMode)) { |
79 | lock_Mutex(d->mtx); | 79 | lock_Mutex(d->mtx); |
80 | iConstForEach(Array, i, &d->visited.values) { | 80 | iConstForEach(Array, i, &d->visited.values) { |
@@ -93,7 +93,7 @@ void save_Visited(const iVisited *d, const char *dirPath) { | |||
93 | } | 93 | } |
94 | 94 | ||
95 | void load_Visited(iVisited *d, const char *dirPath) { | 95 | void load_Visited(iVisited *d, const char *dirPath) { |
96 | iFile *f = newCStr_File(concatPath_CStr(dirPath, "visited2.txt")); | 96 | iFile *f = newCStr_File(concatPath_CStr(dirPath, "visited.2.txt")); |
97 | if (open_File(f, readOnly_FileMode | text_FileMode)) { | 97 | if (open_File(f, readOnly_FileMode | text_FileMode)) { |
98 | lock_Mutex(d->mtx); | 98 | lock_Mutex(d->mtx); |
99 | const iRangecc src = range_Block(collect_Block(readAll_File(f))); | 99 | const iRangecc src = range_Block(collect_Block(readAll_File(f))); |