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
Modifier and TypeClassDescriptionstatic interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
forceRemoveFile
(Path path) void
forceRemoveRecursive
(Path path) static PathRemover
newFilteredRobustRemover
(PathRemover.PathChecker pathChecker, int maxRetries, boolean gcAfterFailedRemove, long waitBetweenRetries) static PathRemover
newRemoverWithStrategy
(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
-