Add forceListHidden dial option to force the use of 'LIST -a' command (#271)

This is useful for servers that do not offer up
hidden folders/files by default when using LIST/MLSD
commands.
Setting forceListHidden to true will force the use of
the 'LIST -a' command even when MLST support has
been detected.
This commit is contained in:
Øyvind Heddeland Instefjord
2022-09-04 20:43:06 +02:00
committed by GitHub
parent b85cf1edcc
commit 99be0634ab
3 changed files with 42 additions and 14 deletions

View File

@@ -4,7 +4,7 @@ import (
"path"
)
//Walker traverses the directory tree of a remote FTP server
// Walker traverses the directory tree of a remote FTP server
type Walker struct {
serverConn *ServerConn
root string