mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-11 12:42:31 +00:00
Add directory.watch.ready for safe torrent watch folders
This commit is contained in:
committed by
Jari Sundell
parent
e03ab27cf0
commit
84229a85be
@@ -9,6 +9,7 @@ namespace utils {
|
||||
|
||||
struct file_status {
|
||||
int m_flags;
|
||||
int64_t m_size;
|
||||
uint32_t m_mtime;
|
||||
};
|
||||
|
||||
@@ -32,14 +33,14 @@ public:
|
||||
|
||||
using base_type::erase;
|
||||
|
||||
// Insert and return true if the entry does not exist or the new
|
||||
// file's mtime is more recent.
|
||||
// Insert and return true if the entry does not exist or the file's
|
||||
// status has changed.
|
||||
bool insert(const std::string& path);
|
||||
|
||||
// Add a function for pruning a sorted list of paths.
|
||||
|
||||
// Function for pruning entries that no longer points to a file, or
|
||||
// has a different mtime.
|
||||
// has different status.
|
||||
void prune();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user