]> git.saurik.com Git - apt.git/blob - ftparchive/byhash.h
ce05397ad5d517fe3f6cf65531708f1a7431e059
[apt.git] / ftparchive / byhash.h
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
14 class HashString;
15
16 // Delete all files in "dir" except for the number specified in "KeepFiles"
17 // that are the most recent ones
18 void DeleteAllButMostRecent(std::string dir, int KeepFiles);
19
20 // takes a regular input filename
21 std::string GenByHashFilename(std::string Input, HashString h);
22
23 #endif