File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
src/main/java/org/cryptomator/integrations/revealpath Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 22
33import org .cryptomator .integrations .common .IntegrationsLoader ;
44
5- import java .nio .file .NoSuchFileException ;
65import java .nio .file .Path ;
76import 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.
You can’t perform that action at this time.
0 commit comments