summaryrefslogtreecommitdiff
path: root/ftparchive/byhash.h
blob: 9fbb479a78bad73684de50e35f827a47d24d9f87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// -*- mode: cpp; mode: fold -*-
// Description								/*{{{*/
/* ######################################################################

   ByHash 
   
   ByHash helper functions
   
   ##################################################################### */
									/*}}}*/
#ifndef BYHASH_H
#define BYHASH_H

#include <string>

class HashString;

// Delete all files in "dir" except for the number specified in "KeepFiles"
// that are the most recent ones
void DeleteAllButMostRecent(std::string dir, int KeepFiles);

// takes a regular input filename
std::string GenByHashFilename(std::string Input, HashString const &h);

#endif