Skip to content

jf2048/showfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages