Expand description
showfile
A simple API to show the location of a file in the local file manager (Explorer, Finder, etc.). Supported platforms are Windows, macOS, Linux.
Usage
showfile::show_path_in_file_manager("C:\\Users\\Alice\\hello.txt");
showfile::show_path_in_file_manager("/Users/Bob/hello.txt");
showfile::show_uri_in_file_manager("file:///home/charlie/hello.txt");
Feature Flags
On Linux, D-Bus is used to invoke the file manager. The D-Bus crate in use can be selected with one of these flags:
One of these flags must be specified to build the project. These flags do nothing on Windows and macOS. If only targeting those platforms, it can be left at the default.
Details
This crate is a simple wrapper around these system functions:
Functions
- Tries to show
path
in a file manager. - Tries to show
uri
in a file manager.