Logic to delete, move and copy files and folders