diff --git a/controller/src/main/java/org/jboss/as/controller/persistence/FilePersistenceUtils.java b/controller/src/main/java/org/jboss/as/controller/persistence/FilePersistenceUtils.java index 3c2607c252a..61dbaa96e31 100644 --- a/controller/src/main/java/org/jboss/as/controller/persistence/FilePersistenceUtils.java +++ b/controller/src/main/java/org/jboss/as/controller/persistence/FilePersistenceUtils.java @@ -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()); } }