This Rust-based command-line tool efficiently inventories all .nii.gz
files within a specified directory and its
subdirectories. It's designed to provide a quick overview of the directory's contents, making it particularly useful
for managing and analyzing large collections of .nii.gz
files.
.nii.gz
File Counting: Counts the number of.nii.gz
files within the directory and its subdirectories.- Recursive Analysis: Performs a deep analysis by recursively processing all subdirectories to ensure a comprehensive inventory.
- File Counting by Extension: Counts the number of files for each file extension within the directory and its subdirectories. (Planned)
- Subdirectory Counting: Tallies the total number of subdirectories within the specified directory. (Planned)
Ensure you have Rust installed on your machine. If not, follow the installation instructions on the official Rust website.
-
Clone this repository to your local machine:
git clone https://github.com/yourusername/file-directory-inventory.git
-
Navigate to the project directory:
cd file-directory-inventory
-
Build the project using Cargo (Rust's package manager and build system):
cargo build --release
-
The executable will be located in ./target/release/.
To use this tool, simply run the executable from the command line, passing the target directory as an argument:
./target/release/file_directory_inventory <path_to_directory>
Replace <path_to_directory>
with the path to the directory you wish to inventory.
Contributions are welcome! Feel free to open issues or submit pull requests with improvements or new features.
This project is licensed under the MIT License - see the LICENSE file for details.