byhash.h 608 B

123456789101112131415161718192021222324
  1. // -*- mode: cpp; mode: fold -*-
  2. // Description /*{{{*/
  3. /* ######################################################################
  4. ByHash
  5. ByHash helper functions
  6. ##################################################################### */
  7. /*}}}*/
  8. #ifndef BYHASH_H
  9. #define BYHASH_H
  10. class HashString;
  11. // Delete all files in "dir" except for the number specified in "KeepFiles"
  12. // that are the most recent ones
  13. void DeleteAllButMostRecent(std::string dir, int KeepFiles);
  14. // takes a regular input filename
  15. std::string GenByHashFilename(std::string Input, HashString h);
  16. #endif