/**
  * get Current Working Directory
  *
  * @param bool $asArray
  *
  * @return array|FileInfo
  */
 public function getCwd($asArray = false)
 {
     return $this->cwd && $asArray ? $this->cwd->toArray() : $this->cwd;
 }