Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

120
Views
Download specific files in folder in SharePoint nodejs

I am using SPPull but it downloads all the files in the folder I want to download specific files in a list

async function downloadFromSharePoint(path, projFolder, url, FilesToDownload) {
var fileOpts = {
    spRootFolder: "path + projFolder,
    dlRootFolder: "./downloads",
};
var context = {
    siteUrl: url,
    creds: {
        clientId: config.SHAREPOINT_CLIENTID,
        clientSecret: config.SHAREPOINT_CLIENTSECRET
    }
};
SPPull.download(context, fileOpts)
    .then(() => {
        console.log("Files are downloaded");
    })
    .catch((err) => {
        console.log("Core error has happened", err);
    });
}

I tried to add shouldDownloadFile in fileOpts and give it the list but all the files in the folder downloaded Anyone can help?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!