/** * Retreive file attributes * @param string $file Remote file path * @param string $attribute Required attribute (size, gid, uid, atime, mtime, mode) * @return string Attribute value */ private function getFileStat($file, $attribute) { $statinfo = $this->objSftp->stat($file); return $statinfo[$attribute]; }