Skip to content

Commit 0e59f47

Browse files
committed
Comments and whitespace check
1 parent 23e1b5b commit 0e59f47

File tree

1 file changed

+4
-1
lines changed
  • lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi

1 file changed

+4
-1
lines changed

lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/fs.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,13 +691,16 @@ def cmd_lls_help
691691
# Get list local path information for lls command
692692
#
693693
def list_local_path(path, sort, order, search_term = nil)
694+
# Single file as path
694695
if !::File.directory?(path)
695696
perms = pretty_perms(path)
696697
stat = ::File.stat(path)
697698
print_line("#{perms} #{stat.size} #{stat.ftype[0,3]} #{stat.mtime} #{path}")
698699
return
699700
end
700-
701+
702+
# Enumerate each item...
703+
# No need to sort as Table will do it for us
701704
columns = [ 'Mode', 'Size', 'Type', 'Last modified', 'Name' ]
702705
tbl = Rex::Text::Table.new(
703706
'Header' => "Listing Local: #{path}",

0 commit comments

Comments
 (0)