Missing User Warnings
Medium
- Confidence
- 76% confidence
- Finding
- When '--clean' is used, the script unconditionally calls shutil.rmtree on the resolved output directory before splitting. Because the output directory is user-controllable, a mistaken or maliciously supplied path can cause recursive deletion of arbitrary directories accessible to the process, leading to data loss; in an agent skill context this is more dangerous because the tool may operate on paths provided indirectly by another system or user.
