#explorer #file-manager

showfile

Show files in the local file manager

1 unstable release

0.1.1 Jan 6, 2024
0.1.0 Jan 6, 2024

#23 in #explorer

Download history 112/week @ 2024-06-04 127/week @ 2024-06-11 35/week @ 2024-06-18 58/week @ 2024-06-25 18/week @ 2024-07-02 349/week @ 2024-07-09 152/week @ 2024-07-16 145/week @ 2024-07-23 175/week @ 2024-07-30 168/week @ 2024-08-06 92/week @ 2024-08-13 205/week @ 2024-08-20 114/week @ 2024-08-27 323/week @ 2024-09-03 256/week @ 2024-09-10 166/week @ 2024-09-17

936 downloads per month

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–45MB
~660K SLoC