Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Parsing error on directory named "bourdarie" (jsftp 0.5.5) #41

Closed
rweigel opened this Issue · 0 comments

2 participants

@rweigel

When I execute

var ftp = new Ftp({
    host: "virbo.org",
    user: "anonymous",
    port: 21, // Defaults to 21
    pass: ""
});

ftp.ls("/", function(err, files){
    if (err) return console.error(err);
    console.log(files); // Contains an array of file objects
});

The console shows

Unrecognized format:
arie

This appears to be a problem with parsing the directory named "bourdarie". In the listing, I see that it has found a directory named "bourd" and not "bourdarie":

{ name: 'bourd',
type: 1,
time: 1302926400000,
size: '4096',
owner: '0',
group: '0',
userPermissions: { read: true, write: true, exec: true },
groupPermissions: { read: true, write: false, exec: true },
otherPermissions: { read: true, write: false, exec: true } },

@sergi sergi closed this in b60bc42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.