diff --git a/core/src/main/java/ch/cyberduck/core/Local.java b/core/src/main/java/ch/cyberduck/core/Local.java index 20862006bf5..e3e5e2fe24d 100644 --- a/core/src/main/java/ch/cyberduck/core/Local.java +++ b/core/src/main/java/ch/cyberduck/core/Local.java @@ -440,7 +440,7 @@ public String toURL() { public InputStream getInputStream() throws AccessDeniedException { - return getInputStream(path); + return this.getInputStream(path); } protected InputStream getInputStream(final String path) throws AccessDeniedException { diff --git a/core/src/main/java/ch/cyberduck/core/threading/DefaultFailureDiagnostics.java b/core/src/main/java/ch/cyberduck/core/threading/DefaultFailureDiagnostics.java index 33b76054f69..0629f7c3d24 100644 --- a/core/src/main/java/ch/cyberduck/core/threading/DefaultFailureDiagnostics.java +++ b/core/src/main/java/ch/cyberduck/core/threading/DefaultFailureDiagnostics.java @@ -23,6 +23,8 @@ import ch.cyberduck.core.exception.ConnectionCanceledException; import ch.cyberduck.core.exception.ConnectionRefusedException; import ch.cyberduck.core.exception.ConnectionTimeoutException; +import ch.cyberduck.core.exception.LocalAccessDeniedException; +import ch.cyberduck.core.exception.LocalNotfoundException; import ch.cyberduck.core.exception.LoginFailureException; import ch.cyberduck.core.exception.QuotaException; import ch.cyberduck.core.exception.ResolveFailedException; @@ -100,6 +102,10 @@ public Type determine(final BackgroundException failure) { if(cause instanceof AntiVirusAccessDeniedException) { return Type.antivirus; } + if(cause instanceof LocalAccessDeniedException + || cause instanceof LocalNotfoundException) { + return Type.filesystem; + } } return Type.application; } diff --git a/core/src/main/java/ch/cyberduck/core/threading/FailureDiagnostics.java b/core/src/main/java/ch/cyberduck/core/threading/FailureDiagnostics.java index 64a175b9db2..17429295939 100644 --- a/core/src/main/java/ch/cyberduck/core/threading/FailureDiagnostics.java +++ b/core/src/main/java/ch/cyberduck/core/threading/FailureDiagnostics.java @@ -52,7 +52,11 @@ enum Type { /** * Scanner denied access to file */ - antivirus + antivirus, + /** + * Accessing local file + */ + filesystem } Type determine(T failure);