summaryrefslogtreecommitdiff
path: root/ftparchive/byhash.h
diff options
context:
space:
mode:
Diffstat (limited to 'ftparchive/byhash.h')
-rw-r--r--ftparchive/byhash.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/ftparchive/byhash.h b/ftparchive/byhash.h
new file mode 100644
index 000000000..ce05397ad
--- /dev/null
+++ b/ftparchive/byhash.h
@@ -0,0 +1,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