Cross-platform hidden file library and utility
https://sorairolake.github.io/hf/ β// momentum
// why it's here
- Active: last commit today
// how to help
// readme
hf
hf is a cross-platform hidden file library and utility.
This crate supports both Unix and Windows. On Unix, hidden files and
directories are files and directories that starts with a dot character (.).
On Windows, hidden files and directories are files and directories with the
hidden file attribute. This crate provides operations related to hidden files
and directories, such as making files and directories invisible and visible.
Installation
From source
cargo install hf
Via a package manager
From binaries
The [release page] contains pre-built binaries for Linux, macOS and Windows.
How to build
Please see [BUILD.adoc].
Usage
Make files invisible
Donβt actually hide anything, just show what would be done:
hf hide -n data.txt
Actually hide files:
hf hide -f data.txt
Make hidden files visible
Donβt actually show anything, just show what would be done:
hf show -n .data.txt
Actually show hidden files:
hf show -f .data.txt
Generate shell completion
completion subcommand generates shell completions to standard output.
The following shells are supported: