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

233
Views
Fetching Files from FTP via Node.js

I'm trying to fetch files inside a directory I have on a web server. I'm using an npm called "basic-ftp" and I'm only able to see the directories but not the file inside of them.

  const client = new ftp.Client();
  client.ftp.verbose = true;
  try {
    await client.access({
      host: "195.201.166.237",
      port: "21",
      user: "******",
      password: "*******",
    });
    const ultracell = await client.list(
      "public_html/DB_download_Asso/ULTRACELL/"
    );
    console.log(ultracell[0]);
  } catch (err) {
    console.log(err, "Error");
  }

  client.close();
}

FTPfetch();

When I'm at the previous parent directory I can see all the folders inside, but when I try to open the last parent one I'm not able to see some pdf file that are located there.

Anyone knows how can I fetch those pdf files? Or better, show them to the client side?

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!