/** * @param \Icewind\SMB\IFileInfo $info * @return array */ protected function formatInfo($info) { return array('size' => $info->getSize(), 'mtime' => $info->getMTime()); }
/** * Get the normalized path from an IFileInfo object. * * @param IFileInfo $file * @return string */ protected function getFilePath(IFileInfo $file) { return $this->removePathPrefix(ltrim($file->getPath(), $this->pathSeparator)); }