summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-01 19:04:20 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-01 19:04:20 +0200
commit07759040cf66c5664bbc86bf62dcd9b923a7b91f (patch)
tree23eeebac0c96ca4fae413495b447c06da3f4e722 /module/plugins/internal
parentImprove Hoster and Crypter + general fixup (diff)
parentStrip trailing slashes before case sensitive checking (diff)
downloadpyload-07759040cf66c5664bbc86bf62dcd9b923a7b91f.tar.xz
Merge pull request #1900 from manuelm/stable
Strip trailing slashes before case sensitive checking
Diffstat (limited to 'module/plugins/internal')
-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 55574aae0..dbf6775cb 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