Skip to content

Commit c8c1511

Browse files
committed
Update WindowsFileReferer.java
1 parent 16230c4 commit c8c1511

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/redlance/platformtools/impl/windows/WindowsFileReferer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import java.io.Reader;
1111
import java.net.URI;
1212
import java.nio.charset.StandardCharsets;
13+
import java.nio.file.AccessDeniedException;
1314
import java.nio.file.FileSystemNotFoundException;
1415
import java.util.*;
1516
import java.nio.file.Path;
@@ -31,7 +32,7 @@ public class WindowsFileReferer implements PlatformFileReferer {
3132
Properties props = new Properties();
3233
try (Reader reader = new FileReader(path + ":Zone.Identifier", StandardCharsets.UTF_8)) {
3334
props.load(reader);
34-
} catch (FileNotFoundException ex) {
35+
} catch (FileNotFoundException | AccessDeniedException ex) {
3536
return Collections.emptySet();
3637
}
3738

0 commit comments

Comments
 (0)