This is a simple file explorer written in Rust that lists the files in a specified directory.
The file explorer project is a command-line tool that allows users to list the files in a directory specified by the user. It utilizes Rust's standard library (std::fs
) to interact with the file system and retrieve directory contents.
- List files in a specified directory.
- Handle errors gracefully when encountering issues while reading the directory.
-
Ensure you have Rust installed on your system. If not, you can install it from the official Rust website.
-
Clone this repository to your local machine using Git:
git clone https://github.com/your-username/file-explorer.git
-
Navigate to the directory where the project is cloned.
-
Compile the project using Cargo:
cargo build --release
-
Run the executable, providing the directory path you want to explore:
./target/release/file_explorer <directory_path>
Replace
<directory_path>
with the path to the directory you want to explore.
To explore the contents of the current directory:
./target/release/file_explorer .
Contributions are welcome! If you find any issues or want to add enhancements, feel free to open an issue or submit a pull request on GitHub.