summaryrefslogtreecommitdiff
path: root/crates/tor-persist/src/fs
Commit message (Collapse)AuthorAgeFilesLines
* Fix a bunch of "needless borrow" warnings on nightlyNick Mathewson2022-11-181-3/+3
| | | | | It looks like, despite a few false starts, they've got this warning right; there weren't any false positives.
* tor-persist: use map_whileNick Mathewson2022-11-101-4/+1
| | | | It was introduced in Rust 1.57.
* Test a few more corner cases in tor-persistNick Mathewson2022-05-251-0/+12
| | | | | Also, if we get an IoError from a call to fs-mistrust, report it as an IoError.
* Fix build with Rust 1.53; we can't use map_whileNick Mathewson2022-04-141-1/+4
|
* tor-persist::fs::clean: Log warnings for directory read failuresIan Jackson2022-04-141-1/+19
|
* tor-persist::fs::clean: Tweaks based on review.Nick Mathewson2022-04-131-21/+32
| | | | | | | | | | | | Rename "deletable" to "obsolete". Simplify function structure. Report errors from `metadata()` and `modified()`. Don't claim that we're going to delete something unless we are. Comment about making CUTOFF configurable.
* Remove obsolete files from our state directory.Nick Mathewson2022-04-121-0/+122
This patch removes files created by older versions of arti, if they are at least 4 weeks old. Closes #282