1 unstable release

0.1.1 Jan 6, 2024
0.1.0 Jan 6, 2024

#1618 in Filesystem

Download history 142/week @ 2024-07-20 198/week @ 2024-07-27 127/week @ 2024-08-03 126/week @ 2024-08-10 159/week @ 2024-08-17 149/week @ 2024-08-24 282/week @ 2024-08-31 242/week @ 2024-09-07 229/week @ 2024-09-14 214/week @ 2024-09-21 218/week @ 2024-09-28 250/week @ 2024-10-05 193/week @ 2024-10-12 313/week @ 2024-10-19 260/week @ 2024-10-26 259/week @ 2024-11-02

1,048 downloads per month
Used in 2 crates

MIT license

18KB
241 lines

showfile   Latest Version Documentation

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