mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-14 13:16:17 +00:00
Deprecated rak::path_expand.
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <rak/path.h>
|
||||
#include "utils/file_status_cache.h"
|
||||
|
||||
#include <torrent/exceptions.h>
|
||||
#include <torrent/utils/file_stat.h>
|
||||
|
||||
#include "file_status_cache.h"
|
||||
#include "globals.h"
|
||||
|
||||
namespace utils {
|
||||
|
||||
@@ -15,7 +16,7 @@ FileStatusCache::insert(const std::string& path) {
|
||||
// Should we expand somewhere else? Problem is it adds a lot of junk
|
||||
// to the start of the paths added to the cache, causing more work
|
||||
// during search, etc.
|
||||
if (!fs.update(rak::path_expand(path)))
|
||||
if (!fs.update(expand_path(path)))
|
||||
return false;
|
||||
|
||||
std::pair<iterator, bool> result = base_type::insert(value_type(path, file_status()));
|
||||
@@ -40,7 +41,7 @@ FileStatusCache::prune() {
|
||||
torrent::utils::FileStat fs;
|
||||
iterator tmp = itr++;
|
||||
|
||||
if (!fs.update(rak::path_expand(tmp->first)) || tmp->second.m_mtime != (uint32_t)fs.modified_time())
|
||||
if (!fs.update(expand_path(tmp->first)) || tmp->second.m_mtime != (uint32_t)fs.modified_time())
|
||||
base_type::erase(tmp);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user