New logic for Manager.addFile().