]>
Commit | Line | Data |
---|---|---|
7852873a MV |
1 | // -*- mode: cpp; mode: fold -*- |
2 | // Description /*{{{*/ | |
3 | /* ###################################################################### | |
4 | ||
5 | ByHash | |
6 | ||
7 | ByHash helper functions | |
8 | ||
9 | ##################################################################### */ | |
10 | /*}}}*/ | |
11 | #ifndef BYHASH_H | |
12 | #define BYHASH_H | |
13 | ||
e2ea6b63 DK |
14 | #include <string> |
15 | ||
7852873a MV |
16 | class HashString; |
17 | ||
18 | // Delete all files in "dir" except for the number specified in "KeepFiles" | |
19 | // that are the most recent ones | |
20 | void DeleteAllButMostRecent(std::string dir, int KeepFiles); | |
21 | ||
22 | // takes a regular input filename | |
e2ea6b63 | 23 | std::string GenByHashFilename(std::string Input, HashString const &h); |
7852873a MV |
24 | |
25 | #endif |