protected function ftpMode($path) { return strpos($this->mimetype($path), 'text/') === 0 ? FTP_ASCII : FTP_BINARY; }