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.
1 parent ccd7f65 commit 126f80fCopy full SHA for 126f80f
src/main/java/org/apache/hadoop/fs/glusterfs/GlusterVolume.java
@@ -281,6 +281,10 @@ public FileStatus[] listStatus(Path f) throws IOException {
281
return new FileStatus[] {
282
new GlusterFileStatus(localf, getDefaultBlockSize(), this) };
283
}
284
+
285
+ if(localf.isDirectory() && !localf.canRead()){
286
+ throw new IOException("Access denied.");
287
+ }
288
289
File[] names = localf.listFiles();
290
if (names == null) {
0 commit comments