summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Manuel Mausz <manuel@mausz.at> 2015-09-30 21:53:04 +0200
committerGravatar Manuel Mausz <manuel@mausz.at> 2015-09-30 21:53:04 +0200
commit71c075a25b43220f793269c122b4fb17aa63f160 (patch)
tree0c05bc62e8aa170e22e3d9eaba7643661cfdbb22 /module
parentMerge pull request #1885 from GammaC0de/patch-7 (diff)
downloadpyload-71c075a25b43220f793269c122b4fb17aa63f160.tar.xz
Strip trailing slashes before case sensitive checking
Strip trailing slashes. Otherwise the last pathname component might be empty
Diffstat (limited to 'module')
-rw-r--r--module/plugins/internal/Plugin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/plugins/internal/Plugin.py b/module/plugins/internal/Plugin.py
index 6f3e52962..771966389 100644
--- a/module/plugins/internal/Plugin.py
+++ b/module/plugins/internal/Plugin.py
@@ -45,7 +45,7 @@ def encode(string, encoding='utf8'):
def exists(path):
if os.path.exists(path):
if os.name == "nt":
- dir, name = os.path.split(path)
+ dir, name = os.path.split(path.rstrip(os.sep))
return name in os.listdir(dir)
else:
return True