Fix import dir cleanup
What does this MR do and why?
- Fixes bug where import directory cleanup was not pointing to the proper directory, but actually pointing at a file name in the root of the project. This was causing import directories to fill up.
- Harden security checks.
How to set up and validate locally
- Have a file in the import directory that's older than 1 day.
- Start up Crafty - it should be removed.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
Have you checked this doesn't interfere/conflict/duplicate someone elses work? -
Have you fully tested your changes? -
Have you resolved any lint issues? -
Have you assigned a reviewer? -
Have you applied correct labels?
Edited by Andrew