Skip to content

Commit

Permalink
Implemented -download in Find module
Browse files Browse the repository at this point in the history
  • Loading branch information
p0dalirius committed May 31, 2024
1 parent ba1be9e commit 1ecc05e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions smbclientng/modules/Find.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,14 @@ def __recurse_action(self, paths=[], depth=0):
do_print_entry = (entry.get_longname().lower() == self.options.iname.lower())

if do_print_entry:
# Actions on matches
if self.options.download:
pass
elif self.options.ls:
if entry.is_directory():
self.smbSession.get_file_recursively(path=(path + entry.get_longname() + ntpath.sep))
else:
self.smbSession.get_file(path=(path + entry.get_longname() + ntpath.sep))
# Output formats
if self.options.ls:
if entry.is_directory():
windows_ls_entry(entry, (path + entry.get_longname() + ntpath.sep))
else:
Expand Down

0 comments on commit 1ecc05e

Please sign in to comment.