diff options
author | hut <hut@lavabit.com> | 2009-12-06 14:08:39 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-12-06 14:08:39 +0100 |
commit | 373fdb3b29eeda84beef7f4096e523919ae9b3cb (patch) | |
tree | 1d7b4c2e7926daf357775655188c3c6c35fe133a /ranger | |
parent | 65cb1a32d4d5f83f48169846afec201ab3b6f9c3 (diff) | |
download | ranger-373fdb3b29eeda84beef7f4096e523919ae9b3cb.tar.gz |
fixed directory test
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/directory.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/directory.py b/ranger/directory.py index 113cf792..6a619537 100644 --- a/ranger/directory.py +++ b/ranger/directory.py @@ -17,9 +17,9 @@ class NoDirectoryGiven(Exception): class Directory(SuperClass, SettingsAware): def __init__(self, path): - from os.path import isdir + from os.path import isfile - if not isdir(path): + if isfile(path): raise NoDirectoryGiven() SuperClass.__init__(self, path) |