|
1 | 1 | # StarrScripts |
2 | 2 |
|
3 | | -A curated collection of scripts to optimize and manage various functions related to Starr applications and associated tools. These scripts are designed to enhance functionality, improve management, and automate routine tasks. |
| 3 | +A curated collection of scripts to optimize and manage various functions related to Starr applications and associated tools. |
| 4 | +Occasionally holds random useful scripts as well. |
| 5 | +These scripts are designed to enhance functionality, improve management, and automate routine tasks. |
| 6 | +All scripts are **Created By: [Bakerboy448](https://github.com/bakerboy448/) unless otherwise noted. |
4 | 7 |
|
5 | 8 | ## Scripts Overview |
6 | 9 |
|
@@ -34,6 +37,22 @@ A curated collection of scripts to optimize and manage various functions related |
34 | 37 | 3. Review and adjust script parameters to fit your use case. |
35 | 38 | - **Output:** Results are saved to a file as specified in the script. |
36 | 39 |
|
| 40 | +### Merge Folders Utility |
| 41 | + |
| 42 | +- **Script:** `merge_folders.py` |
| 43 | +- **Description:** A robust utility designed for merging multiple directories into a single target directory, ensuring that no existing files are overwritten in the process. This script uses a recursive function to efficiently merge content, while providing detailed logging of each step to monitor the creation, movement, and skipping of files and directories. |
| 44 | +- **Features:** |
| 45 | + - **Recursive Merging:** Seamlessly combines contents of source directories into a target directory. |
| 46 | + - **Non-destructive:** Preserves existing files by not overwriting them. |
| 47 | + - **Error Handling:** Captures and logs errors during the merging process, ensuring reliable operations. |
| 48 | + - **Detailed Logging:** Tracks and logs every file and directory operation, providing clear visibility into the process. |
| 49 | +- **Usage Case:** Ideal for consolidating data in scenarios like organizing media libraries, merging data backups, or simplifying file system structures. |
| 50 | +- **Setup:** |
| 51 | + 1. Update `source_dirs` and uncomment the variable |
| 52 | + 2. Update `target_dir` and uncomment the variable |
| 53 | + 3. Uncomment `atomic_moves` to engage the movement operation |
| 54 | + 4. Run the script with `python3 merge_folders.py` |
| 55 | + |
37 | 56 | ### Notifiarr Branch Builder |
38 | 57 |
|
39 | 58 | - **Script:** `notifiarr-branch-builder.sh` |
|
0 commit comments