- optimize last patch by returning new FtpDir object directly instead of storing   them in local variable - fix "Cannot access protected property FtpDir::$name" by using FtpDir::getName()   instead of directly accessing the name property in setDir() function
- optimize last patch by returning new FtpDir object directly instead of storing
  them in local variable
- fix "Cannot access protected property FtpDir::$name" by using FtpDir::getName()
  instead of directly accessing the name property in setDir() function

git-svn-id: 526f3b90ad6d9b1dfe840af828070ca3d99521ac@12282 d2cacbed-c0f6-0310-851a-9dad52fc623a

johannes85/core