understand basic-ftp module in node

satya - 5/25/2019, 10:27:38 AM

understand basic-ftp module in node

understand basic-ftp module in node

Search for: understand basic-ftp module in node

satya - 5/25/2019, 10:31:59 AM

Here is the documentation for it

Here is the documentation for it

satya - 5/25/2019, 10:42:16 AM

Here is their code


const ftp = require("basic-ftp")
const fs = require("fs")
 
example()
 
async function example() {
    const client = new ftp.Client()
    client.ftp.verbose = true
    try {
        await client.access({
            host: "myftpserver.com",
            user: "very",
            password: "password",
            secure: true
        })
        console.log(await client.list())
        await client.upload(fs.createReadStream("README.md"), "README.md")
    }
    catch(err) {
        console.log(err)
    }
    client.close()
}

satya - 5/25/2019, 10:44:32 AM

On the same link API is here

On the same link API is here

satya - 5/25/2019, 12:22:43 PM

I have used


//From any directory
npm -i -g basic-ftp

//it placed it under
node-home/node/node_modules/basic-ftp

satya - 5/30/2019, 11:35:23 AM

Can basic-ftp module list files that have changed from a particular date?

Can basic-ftp module list files that have changed from a particular date?

Search for: Can basic-ftp module list files that have changed from a particular date?

satya - 5/31/2019, 9:28:48 AM

I was told most ftp sites don't have that feature

I was told most ftp sites don't have that feature

satya - 5/31/2019, 9:31:36 AM

I was told the following may be supported


ls [-lafhlnrSt] path

//what ever those options are

satya - 5/31/2019, 9:37:09 AM

How do I specify listing and ls options with basic-ftp npm module?

How do I specify listing and ls options with basic-ftp npm module?

Search for: How do I specify listing and ls options with basic-ftp npm module?

satya - 5/31/2019, 9:48:27 AM

Here is npm community forum. Not sure what gets asked here

Here is npm community forum. Not sure what gets asked here

satya - 5/31/2019, 9:50:06 AM

Here is basic-ftp github location

Here is basic-ftp github location