Put back the previously deleted code. Target Folder has sense too on fo...

...lder. Correct undefined self.portal #38