Package jenkins.util.io
Class PathRemover
java.lang.Object
jenkins.util.io.PathRemover
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class PathRemover
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidforceRemoveFile(Path path) voidforceRemoveRecursive(Path path) static PathRemovernewFilteredRobustRemover(PathRemover.PathChecker pathChecker, int maxRetries, boolean gcAfterFailedRemove, long waitBetweenRetries) static PathRemovernewRemoverWithStrategy(PathRemover.RetryStrategy retryStrategy) static PathRemover
-
Method Details
-
newSimpleRemover
-
newRemoverWithStrategy
-
newFilteredRobustRemover
public static PathRemover newFilteredRobustRemover(@NonNull PathRemover.PathChecker pathChecker, int maxRetries, boolean gcAfterFailedRemove, long waitBetweenRetries) -
forceRemoveFile
- Throws:
IOException
-
forceRemoveDirectoryContents
- Throws:
IOException
-
forceRemoveRecursive
- Throws:
IOException
-