add max limit for searches
This commit is contained in:
2
ftp.go
2
ftp.go
@@ -1096,7 +1096,7 @@ func (c *ServerConn) Walk(root string) *Walker {
|
|||||||
|
|
||||||
// Search returns all the directories matching the search pattern
|
// Search returns all the directories matching the search pattern
|
||||||
func (c *ServerConn) Search(pattern string) ([]string, error) {
|
func (c *ServerConn) Search(pattern string) ([]string, error) {
|
||||||
_, message, err := c.cmd(StatusCommandOK, "SITE SEARCH %s", pattern)
|
_, message, err := c.cmd(StatusCommandOK, "SITE SEARCH %s --LIMIT 50000", pattern)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user