Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ftp.get(remotePath, localPath, callback) creating files with size 0 #315

Open
nuryagdym opened this issue May 12, 2021 · 0 comments
Open

Comments

@nuryagdym
Copy link

nuryagdym commented May 12, 2021

get function creating files with size 0 and nothing else happens.
code:

let ftp = new JsFtp({
    host: settings.host,
    port: settings.port,
    user: settings.user,
    pass: settings.pass,
    debug: console.log,
    debugMode: true,
});

ftp.get('/popup_flag.txt', './popup_flag.txt', function (err) {
    if (err) {
        console.error('ftp.get failed.', err);
        return;
    }
    console.log('-', 'downloaded', 'downloaded successfully');
});

I could not get any logs of by running this code, ./popup_flag.txt file is created but it is empty.

NodeJS: v12.16.3
OS: Windows 10

this my might be related to #284 and #285

tried using another library basic-ftp which worked. I guess it is NodeJS version issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant