We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16230c4 commit c8c1511Copy full SHA for c8c1511
src/main/java/org/redlance/platformtools/impl/windows/WindowsFileReferer.java
@@ -10,6 +10,7 @@
10
import java.io.Reader;
11
import java.net.URI;
12
import java.nio.charset.StandardCharsets;
13
+import java.nio.file.AccessDeniedException;
14
import java.nio.file.FileSystemNotFoundException;
15
import java.util.*;
16
import java.nio.file.Path;
@@ -31,7 +32,7 @@ public class WindowsFileReferer implements PlatformFileReferer {
31
32
Properties props = new Properties();
33
try (Reader reader = new FileReader(path + ":Zone.Identifier", StandardCharsets.UTF_8)) {
34
props.load(reader);
- } catch (FileNotFoundException ex) {
35
+ } catch (FileNotFoundException | AccessDeniedException ex) {
36
return Collections.emptySet();
37
}
38
0 commit comments