Sd Yadav Math Book Pdf Google Drive -
const fileStream = fs.createWriteStream('path/to/download/file.pdf'); res.data.pipe(fileStream);
// Get new client async function getNewClient() { const client = await auth.getClient(); google.options({ auth: client }); } sd yadav math book pdf google drive
return new Promise((resolve, reject) => { fileStream.on('finish', () => resolve('File downloaded')); fileStream.on('error', (err) => reject('Error downloading file')); }); } catch (err) { console.log('The API returned an error: ' + err); } } const fileStream = fs
npm install google-auth-library googleapis google.options({ auth: client })
// Download File async function downloadFile(fileId) { await getNewClient(); const drive = google.drive({ version: 'v3' }); try { const res = await drive.files.get({ fileId: fileId, alt: 'media' }, { responseType: 'stream' });
One comment
Unable to clone Samba. Showing following error:
git clone git://git.samba.org/samba.git samba
Cloning into ‘samba’…
fatal: unable to connect to git.samba.org:
git.samba.org[0: 193.175.80.230]: errno=Connection refused
git.samba.org[1: 2001:638:603:d06e::80:230]: errno=Network is unreachable
Is there any other way to install samba ? or git url