FileHider is a simple Java Swing application that allows users to hide and unhide files by renaming them with a dot (.) prefix. This can be useful for hiding files on Unix-based systems where files starting with a dot are considered hidden.
- Browse Files: Select a file using the file chooser dialog.
- Hide Files: Hide the selected file by adding a dot (.) at the beginning of the file name.
- Unhide Files: Unhide the selected file by removing the dot (.) from the beginning of the file name.
- Java Development Kit (JDK) 8 or later
- Apache Maven (optional, for building the project)
-
Clone the repository:
git clone https://github.com/your-username/FileHider.git cd FileHider -
Compile and run:
-
Using an IDE (e.g., Eclipse, IntelliJ IDEA):
- Import the project as a Java project.
- Run the
mainmethod in theFileHiderclass.
-
Using the command line:
javac -d bin -sourcepath src src/filehider/FileHider.java java -cp bin filehider.FileHider
-
-
Launch the application. The main window will display a text field for the file path, along with "Browse," "Hide," and "Unhide" buttons.
-
Browse for a file:
- Click the "Browse" button to open a file chooser dialog.
- Select the file you want to hide or unhide. The file path will be displayed in the text field.
-
Hide a file:
- Click the "Hide" button to hide the selected file. The application will rename the file by adding a dot (.) prefix, which makes the file hidden on Unix-based systems.
-
Unhide a file:
- Click the "Unhide" button to unhide the selected file. The application will rename the file by removing the dot (.) prefix.
This project is licensed under the APACHE License - see the LICENSE file for details.
- The Java Swing library for providing the GUI components.
- The Java I/O library for handling file operations.
Contributions are welcome! Please feel free to submit a Pull Request.
Feel free to contact numarahamath@gmail.com
For any questions or inquiries, please contact [your-email@example.com].