safe_mop: safely rm files and folders by checking current open files