1
0
Fork 0
apt/ftparchive/byhash.h
Daniel Baumann 6810ba718b
Adding upstream version 3.0.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-20 21:10:43 +02:00

25 lines
634 B
C++

// -*- 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