We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4c9e92f + c230b23 commit 012a5a3Copy full SHA for 012a5a3
src/main/java/org/apache/hadoop/fs/glusterfs/GlusterVolume.java
@@ -289,6 +289,10 @@ public FileStatus[] listStatus(Path f) throws IOException {
289
return new FileStatus[] {
290
new GlusterFileStatus(localf, getDefaultBlockSize(), this) };
291
}
292
+
293
+ if(localf.isDirectory() && !localf.canRead()){
294
+ throw new IOException("Access denied : " + localf.getPath());
295
+ }
296
297
File[] names = localf.listFiles();
298
if (names == null) {
0 commit comments