mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-17 10:11:27 +00:00
Added cleanup to TemporaryMountPointChooser
This commit is contained in:
@@ -73,6 +73,16 @@ public class TemporaryMountPointChooser implements MountPointChooser {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void cleanup(Path mountPoint) {
|
||||
try {
|
||||
Files.delete(mountPoint);
|
||||
LOG.debug("Successfully deleted mount point: {}", mountPoint);
|
||||
} catch (IOException e) {
|
||||
LOG.warn("Could not delete mount point: {}", e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
private InvalidMountPointException wrapAsIMPE(Exception exception) {
|
||||
return new InvalidMountPointException(exception);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user