Skip to content

Commit 69dc2f2

Browse files
author
Gary Gregory
committed
Repairing build on Linux... reverting old behavior.
1 parent 2c92782 commit 69dc2f2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/apache/commons/io/FileUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1440,7 +1440,7 @@ private static void setLastModified(final File sourceFile, final File targetFile
14401440
public static void forceDelete(final File file) throws IOException {
14411441
final Counters.PathCounters deleteCounters;
14421442
try {
1443-
deleteCounters = PathUtils.delete(file.toPath(), StandardDeleteOption.OVERRIDE_READ_ONLY);
1443+
deleteCounters = PathUtils.delete(file.toPath());
14441444
} catch (IOException e) {
14451445
throw new IOException("Unable to delete file: " + file, e);
14461446
}

src/main/java/org/apache/commons/io/file/PathUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ public static PathCounters deleteFile(final Path file, final DeleteOption... opt
360360
final boolean exists = Files.exists(file, LinkOption.NOFOLLOW_LINKS);
361361
final long size = exists ? Files.size(file) : 0;
362362
if (overrideReadOnly(options) && exists) {
363-
setReadOnly(file, false/*, LinkOption.NOFOLLOW_LINKS*/);
363+
setReadOnly(file, false, LinkOption.NOFOLLOW_LINKS);
364364
}
365365
if (Files.deleteIfExists(file)) {
366366
pathCounts.getFileCounter().increment();

0 commit comments

Comments
 (0)