Thanks to visit codestin.com
Credit goes to github.com

Skip to content

when the number of files exceeds 3170, the LIST command crashes #101

@rianwouters

Description

@rianwouters

when the number of files exceeds 3170, the LIST command generates the following exception:

FTP command: LIST
Directory has 3170 files
/home/sesame/lumipark/node_modules/ftpd/lib/ftpd.js:677
return x.localeCompare(y);
^
RangeError: Maximum call stack size exceeded
at String.localeCompare (native)
at sf (/home/sesame/lumipark/node_modules/ftpd/lib/ftpd.js:677:24)
at /home/sesame/lumipark/node_modules/ftpd/lib/ftpd.js:681:20
at Array.sort (native)
at finished (/home/sesame/lumipark/node_modules/ftpd/lib/ftpd.js:679:31)
at handleFile (/home/sesame/lumipark/node_modules/ftpd/lib/ftpd.js:643:40)
at /home/sesame/lumipark/node_modules/ftpd/lib/ftpd.js:658:11
at FtpServer.self.getGroupFromGid (/home/sesame/lumipark/node_modules/ftpd/lib/ftpd.js:99:5)
at /home/sesame/lumipark/node_modules/ftpd/lib/ftpd.js:646:21
at FtpServer.self.getUsernameFromUid (/home/sesame/lumipark/node_modules/ftpd/lib/ftpd.js:96:5)
[nodemon] app crashed - waiting for file changes before starting...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions