Beispiel #1
0
 /**
  * Translate an absolute filesystem path into a relative path for use by the filesystem abstraction, e.g. a relative
  * (S)FTP path
  *
  * @param   string  $fileName  The full filesystem path of a file or directory
  *
  * @return  string  The translated path for use by the filesystem abstraction
  */
 public function translatePath($fileName)
 {
     if (is_object($this->abstractionAdapter)) {
         return $this->abstractionAdapter->translatePath($fileName);
     } else {
         return $this->fileAdapter->translatePath($fileName);
     }
 }