FileUtils.DeleteTimedoutFiles

Deletes files based on a file spec and a given timeout. This routine is useful for cleaning up temp files in Web applications.

public static void DeleteTimedoutFiles(string filespec,
	int seconds)

Parameters

filespec
A filespec that includes path and/or wildcards to select files

seconds
The timeout - if files are older than this timeout they are deleted


See also:

Class FileUtils

© West Wind Technologies, 1996-2024 • Updated: 06/29/24
Comment or report problem with topic