revealInFinder method

  1. @override
Future<void> revealInFinder(
  1. String path
)
override

Reveal path in the platform file manager.

Implementation

@override
Future<void> revealInFinder(String path) async {
  if (_platform == NativePlatform.macos) {
    await _runSimple('open', ['-R', path]);
  } else if (_platform == NativePlatform.linux) {
    await _runSimple('xdg-open', [File(path).parent.path]);
  } else if (_platform == NativePlatform.windows) {
    await _runSimple('explorer', ['/select,', path]);
  }
}