Exemplo n.º 1
0
Arquivo: smb.php Projeto: evanjt/core
 /**
  * @param \Icewind\SMB\IFileInfo $info
  * @return array
  */
 protected function formatInfo($info)
 {
     return array('size' => $info->getSize(), 'mtime' => $info->getMTime());
 }
Exemplo n.º 2
0
 /**
  * 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));
 }