movelog.py is a Python script designed to move log and text files from the current working directory to their respective directories. The script checks for the existence of the log and txt directories and creates them if they do not exist.
- Move Log Files: Move all
.logfiles from the current working directory to thelogdirectory. - Move Text Files: Move all
.txtfiles from the current working directory to thetxtdirectory. - Directory Creation: Automatically create the
logandtxtdirectories if they do not exist.
-
Clone the Repository:
git clone <repository-url> cd <repository-directory>
-
Run the Script:
python movelog.py
$ python movelog.py- The script will move all
.logfiles to thelogdirectory and all.txtfiles to thetxtdirectory.
- directory: Set to the current working directory by default. Modify as needed to specify a different directory.
- Enhanced File Handling: Add support for moving other file types.
- Recursive Directory Processing: Process files in subdirectories.
- Customization Options: Provide more options for customizing the destination directories.
Contributions are welcome! Please submit a pull request or open an issue to discuss your ideas.
This project is licensed under the MIT License.