Skip to content

Commit cc8b37d

Browse files
committed
Make directory mandatory
1 parent 15b7435 commit cc8b37d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/post/file.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def pwd
3434
# Returns a list of the contents of the specified directory
3535
# @param directory [String] the directory to list
3636
# @return [Array] the contents of the directory
37-
def dir(directory = nil)
37+
def dir(directory)
3838
if session.type == 'meterpreter'
3939
return session.fs.dir.entries(directory)
4040
else

0 commit comments

Comments
 (0)