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

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

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 h);

#endif