File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Examples/Movie Timecode/Movie Timecode/Support Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ extension URL {
16
16
/// Has no effect on non-macOS platforms.
17
17
func openFile( ) throws {
18
18
#if os(macOS)
19
- if !NSWorkspace. shared. selectFile ( nil , inFileViewerRootedAtPath: path ( ) ) {
19
+ if !NSWorkspace. shared. selectFile ( nil , inFileViewerRootedAtPath: path ( percentEncoded : false ) ) {
20
20
throw CocoaError ( . fileNoSuchFile)
21
21
}
22
22
#endif
@@ -26,7 +26,7 @@ extension URL {
26
26
/// Has no effect on non-macOS platforms.
27
27
func revealInFinder( ) throws {
28
28
#if os(macOS)
29
- if !NSWorkspace. shared. selectFile ( path ( ) , inFileViewerRootedAtPath: " / " ) {
29
+ if !NSWorkspace. shared. selectFile ( path ( percentEncoded : false ) , inFileViewerRootedAtPath: " / " ) {
30
30
throw CocoaError ( . fileNoSuchFile)
31
31
}
32
32
#endif
You can’t perform that action at this time.
0 commit comments