deleteFilesIgnoringExceptions

Deletes all given files in a Directory, suppressing all thrown IOExceptions. Note that the file names should not be null.

Parameters

dir

the Directory to delete files from

files

collection of file names to delete


Deletes all given files in a Directory, suppressing all thrown IOExceptions. :contentReferenceoaicite:4{index=4}

Parameters

dir

the Directory to delete files from

files

vararg of file names to delete


fun deleteFilesIgnoringExceptions(vararg files: Path)

Deletes all given Paths, suppressing all thrown IOExceptions. Some of the paths may be null; they are ignored.