diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-10-01 19:04:20 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-10-01 19:04:20 +0200 |
commit | 07759040cf66c5664bbc86bf62dcd9b923a7b91f (patch) | |
tree | 23eeebac0c96ca4fae413495b447c06da3f4e722 /module/plugins/internal | |
parent | Improve Hoster and Crypter + general fixup (diff) | |
parent | Strip trailing slashes before case sensitive checking (diff) | |
download | pyload-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.py | 2 |
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 |