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 Classes Modifier and Type Class Description static interface
PathRemover.PathChecker
static interface
PathRemover.RetryStrategy
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
forceRemoveDirectoryContents(Path path)
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
newSimpleRemover()
-
-
-
Method Detail
-
newSimpleRemover
public static PathRemover newSimpleRemover()
-
newRemoverWithStrategy
public static PathRemover newRemoverWithStrategy(@NonNull PathRemover.RetryStrategy retryStrategy)
-
newFilteredRobustRemover
public static PathRemover newFilteredRobustRemover(@NonNull PathRemover.PathChecker pathChecker, int maxRetries, boolean gcAfterFailedRemove, long waitBetweenRetries)
-
forceRemoveFile
public void forceRemoveFile(@NonNull Path path) throws IOException
- Throws:
IOException
-
forceRemoveDirectoryContents
public void forceRemoveDirectoryContents(@NonNull Path path) throws IOException
- Throws:
IOException
-
forceRemoveRecursive
public void forceRemoveRecursive(@NonNull Path path) throws IOException
- Throws:
IOException
-
-