[
https://issues.apache.org/jira/browse/IO-859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gary D. Gregory resolved IO-859.
--------------------------------
Fix Version/s: 2.18.0
Resolution: Fixed
[~jdigital]
Fixed in git master and snapshot builds on
https://repository.apache.org/content/repositories/snapshots/
> FileUtils.forceDelete on non-existent file on Windows throws IOException
> rather than FileNotFoundException
> ----------------------------------------------------------------------------------------------------------
>
> Key: IO-859
> URL: https://issues.apache.org/jira/browse/IO-859
> Project: Commons IO
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 2.16.1
> Environment: Windows
> Reporter: JD Dean
> Priority: Minor
> Fix For: 2.18.0
>
>
> using FileUtils.forceDelete on a non-existent file throws *IOException: DOS
> or POSIX file operations not available* in setReadOnly.
> {code:java}
> Caused by: java.io.IOException: DOS or POSIX file operations not available
> for <path>
> PathUtils.setReadOnly(PathUtils.java:1602)
> PathUtils.deleteFile(PathUtils.java:584)
> PathUtils.delete(PathUtils.java:477)
> FileUtils.forceDelete(FileUtils.java:1386)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)