Improve python script runt time deleting files and directories
I have a Python script that deletes files and directories older than X days. However, this script is running on a huge directory with millions of files and directories. At the current rate, it will take approximately six weeks to complete the deletion process (looking at disk space metric).