| 143 | } |
| 144 | |
| 145 | bool MacFileSystem::ShowFileExplorer(const StringView& path) |
| 146 | { |
| 147 | String fullPath = FileSystem::ConvertRelativePathToAbsolute(path); |
| 148 | NSString* selectFile = AppleUtils::ToNSString(fullPath); |
| 149 | NSString* inFileViewerRootedAtPath = AppleUtils::ToNSString(String::Empty); |
| 150 | if (FileSystem::DirectoryExists(fullPath)) |
| 151 | { |
| 152 | // Show folder contents |
| 153 | inFileViewerRootedAtPath = selectFile; |
| 154 | selectFile = nullptr; |
| 155 | } |
| 156 | return [[NSWorkspace sharedWorkspace] selectFile: selectFile inFileViewerRootedAtPath: inFileViewerRootedAtPath]; |
| 157 | } |
| 158 | |
| 159 | #endif |
no outgoing calls
no test coverage detected