view src/lib/unlink-old-files.h @ 22664:fea53c2725c0

director: Fix director_max_parallel_moves/kicks type Should be uint, not time.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Thu, 09 Nov 2017 12:24:16 +0200
parents 091b9f49f24f
children
line wrap: on
line source

#ifndef UNLINK_OLD_FILES_H
#define UNLINK_OLD_FILES_H

/* Unlink all files from directory beginning with given prefix and having
   ctime older than min_time. Makes sure that the directory's atime is updated.
   Returns -1 if there were some errors. */
int unlink_old_files(const char *dir, const char *prefix, time_t min_time);

#endif