mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-22 04:31:27 +00:00
reactivate reveal()-method of the vault
This commit is contained in:
@@ -8,10 +8,14 @@ public interface NioAdapter {
|
||||
|
||||
void mount() throws CommandFailedException;
|
||||
|
||||
default void reveal() throws CommandFailedException {
|
||||
throw new CommandFailedException("Not implemented.");
|
||||
}
|
||||
|
||||
void unmount() throws CommandFailedException;
|
||||
|
||||
default void unmountForced() throws CommandFailedException {
|
||||
throw new CommandFailedException("Operation not supported");
|
||||
throw new CommandFailedException("Operation not supported.");
|
||||
}
|
||||
|
||||
void stop();
|
||||
|
||||
@@ -178,11 +178,8 @@ public class Vault {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO: implement it again
|
||||
*/
|
||||
public void reveal() throws CommandFailedException {
|
||||
|
||||
nioAdapter.reveal();
|
||||
}
|
||||
|
||||
// ******************************************************************************
|
||||
|
||||
@@ -59,6 +59,16 @@ public class WebDavNioAdapter implements NioAdapter {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void reveal() throws CommandFailedException {
|
||||
try {
|
||||
mount.reveal();
|
||||
} catch (Mounter.CommandFailedException e) {
|
||||
e.printStackTrace();
|
||||
throw new CommandFailedException(e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized void unmount() throws CommandFailedException {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user