File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -52,13 +52,16 @@ export interface UploadOptions {
5252export interface ClientOptions {
5353 /** Allow the FTP server to use a different host for transfers. */
5454 allowSeparateTransferHost : boolean
55- /** The upper bound for directory listings. */
55+ /**
56+ * The upper bound for directory listings, a security measure to avoid unbounded memory consumption.
57+ * You typically don't have to set this, the library picks a reasonable default.
58+ */
5659 maxListingBytes : number
5760}
5861
5962const defaultClientOptions : ClientOptions = {
6063 allowSeparateTransferHost : true ,
61- maxListingBytes : 20 * 1024 * 1024
64+ maxListingBytes : 40 * 1024 * 1024
6265}
6366const LIST_COMMANDS_DEFAULT = ( ) => [ "LIST -a" , "LIST" ]
6467const LIST_COMMANDS_MLSD = ( ) => [ "MLSD" , "LIST -a" , "LIST" ]
You can’t perform that action at this time.
0 commit comments