1 unstable release
0.1.1 | Jan 6, 2024 |
---|---|
0.1.0 |
|
#1618 in Filesystem
1,048 downloads per month
Used in 2 crates
18KB
241 lines
showfile
A simple Rust crate 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:
Dependencies
~0–41MB
~654K SLoC