]> source.dussan.org Git - jgit.git/commit
Add IGNORE_ERRORS to FileUtils.delete() 88/5088/2
authorChristian Halstrick <christian.halstrick@sap.com>
Tue, 21 Feb 2012 13:23:43 +0000 (14:23 +0100)
committerChristian Halstrick <christian.halstrick@sap.com>
Tue, 21 Feb 2012 13:23:43 +0000 (14:23 +0100)
commitb6d376a1775fd4efeb7742452c56e7629cbed885
tree49635a159e3924fab81428192b3b96036a4b6a89
parentde48250da5a424ffbf26db0a4b8bf0d83f39f76e
Add IGNORE_ERRORS to FileUtils.delete()

There are a few situations where you want to delete files or folders but
where you are not interested in getting exceptions if this doesn't
succeed. E.g. if you delete garbage in the GC class you want that if
certain files can't be deleted the command succeeds. Maybe the next
garbage collector run has more luck not to interfere with a virus
scanner run on Windows. Therefore an option is added to
FileUtils.delete() not to report errors in such cases.

Change-Id: I58994d8c481e591dcbb0f2be7dfa562e125f0f08
Signed-off-by: Christian Halstrick <christian.halstrick@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/util/FileUtils.java