Skip to content
Open
Show file tree
Hide file tree
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
8 changes: 7 additions & 1 deletion rshell/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,13 @@ def add_suffix_if_dir(filename):
# This can happen when a symlink points to a non-existant file.
pass
return filename
if not os.path.isdir(dirname):
def isdir(path):
try:
mode = os.stat(path)[0]
return mode & 0o040000
except OSError:
return False
if not isdir(dirname):
return []
matches = [add_suffix_if_dir(result_prefix + filename)
for filename in os.listdir(dirname) if filename.startswith(match_prefix)]
Expand Down
2 changes: 1 addition & 1 deletion rshell/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.0.33'
__version__ = '0.0.34'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@
},
extras_require={
':sys_platform == "win32"': [
'pyreadline']
'pyreadline3']
}
)