Skip to content

Commit 8aa9d6f

Browse files
authored
Merge pull request Pennyw0rth#1069 from strikoder/main
2 parents b1e9d63 + 3f59b01 commit 8aa9d6f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

nxc/protocols/ftp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def list_directory_full(self):
121121
# ftplib's "dir" prints directly to stdout, and "nlst" only returns the folder name, not full details
122122
files = []
123123
try:
124-
self.conn.retrlines("LIST", callback=files.append)
124+
self.conn.retrlines("LIST -a", callback=files.append)
125125
except error_perm as error_message:
126126
self.logger.fail(f"Failed to list directory. Response: ({error_message})")
127127
self.conn.close()

nxc/protocols/ftp/proto_args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def proto_args(parser, parents):
66
ftp_parser.add_argument("--port", type=int, default=21, help="FTP port")
77

88
cgroup = ftp_parser.add_argument_group("File Operations")
9-
cgroup.add_argument("--ls", metavar="DIRECTORY", nargs="?", const=".", help="List files in the directory")
9+
cgroup.add_argument("--ls", metavar="DIRECTORY", nargs="?", const=".", help="List all files (including hidden) in the directory")
1010
cgroup.add_argument("--get", metavar="FILE", help="Download a file")
1111
cgroup.add_argument("--put", metavar=("LOCAL_FILE", "REMOTE_FILE"), nargs=2, help="Upload a file")
1212
return parser

0 commit comments

Comments
 (0)