Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion rshell/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,10 @@ def get_stat(filename):
def listdir(dirname):
"""Returns a list of filenames contained in the named directory."""
import os
return os.listdir(dirname)
try:
return os.listdir(dirname)
except TypeError:
return os.listdir()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to mention any known platforms which don't accept arguments.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Atleast nrf pca10056.



def listdir_matches(match):
Expand Down