added option for moving files to another directory instead of deleting them