Skip to content

Commit a7b1eb6

Browse files
committed
change spec:
* for files, select file in file manager * for directory, just open dir in file manager
1 parent 9d80800 commit a7b1eb6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/main/java/org/cryptomator/integrations/revealpath/RevealPathService.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import org.cryptomator.integrations.common.IntegrationsLoader;
44

5-
import java.nio.file.NoSuchFileException;
65
import java.nio.file.Path;
76
import java.util.stream.Stream;
87

@@ -18,13 +17,15 @@ static Stream<RevealPathService> get() {
1817
}
1918

2019
/**
21-
* Opens the parent of the given path in the system default file manager and highlights the resource the path points to.
20+
* Reveal the path in the system default file manager.
21+
* <p>
22+
* If the path points to a file, the parent of the file is openend and file is selected in the file manager window.
23+
* If the path points to a directory, the directory is opened and its content shown in the file manager window.
2224
*
2325
* @param p Path to reveal
24-
* @throws RevealFailedException If the file manager could not be opened
25-
* @throws IllegalArgumentException If {@code p} does not have a parent
26+
* @throws RevealFailedException if revealing the path failed
2627
*/
27-
void reveal(Path p) throws RevealFailedException, NoSuchFileException;
28+
void reveal(Path p) throws RevealFailedException;
2829

2930
/**
3031
* Indicates, if this provider can be used.

0 commit comments

Comments
 (0)