Skip to content

Commit

Permalink
[WFCORE-7102]: AccessDeniedException on Windows when using a read-only
Browse files Browse the repository at this point in the history
configuration dir.

* Replacing java.io.File.canWrite() by
  java.nio.file.FIles.isWritable(Path).

Jira: https://issues.redhat.com/browse/WFCORE-7102

Signed-off-by: Emmanuel Hugonnet <[email protected]>
  • Loading branch information
ehsavoie committed Dec 17, 2024
1 parent ebf13df commit bc35440
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,6 @@ static boolean isParentFolderWritable(File file){
if ( !file.exists() || file.getParentFile() == null ){
return false;
}
return file.getParentFile().canWrite();
return Files.isWritable(file.getParentFile().toPath());
}
}

0 comments on commit bc35440

Please sign in to comment.