Permalink
Browse files

Use File.directory?(path.to_s) instead of File.directory?(path)

I was getting some ArgumentErrors traced back to this line. Changing to
dir.to_s solved them.
  • Loading branch information...
1 parent 38aca52 commit 4087209d88fc1242186896eda8a7ccb3e7aa0186 @jdelkins committed Dec 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lusty/filesystem-explorer.rb
@@ -212,7 +212,7 @@ def compute_sorted_matches
def open_entry(entry, open_mode)
path = view_path() + entry.label
- if File.directory?(path)
+ if File.directory?(path.to_s)
# Recurse into the directory instead of opening it.
@prompt.set!(path.to_s)
@selected_index = 0

0 comments on commit 4087209

Please sign in to comment.