Synchronous version of pruneTemp. Removes expired files from the temporary directory.
pruneTemp
Files with lastModified before this date will be removed.
A VoidIOResult indicating success or failure.
VoidIOResult
pruneTemp for the async version.
1.7.0
// Remove files older than 24 hoursconst yesterday = new Date(Date.now() - 24 * 60 * 60 * 1000);pruneTempSync(yesterday); Copy
// Remove files older than 24 hoursconst yesterday = new Date(Date.now() - 24 * 60 * 60 * 1000);pruneTempSync(yesterday);
Synchronous version of
pruneTemp. Removes expired files from the temporary directory.