make sure theres no double slash at the beginning of exclude path, fix #183

This commit is contained in:
tibbi 2017-03-06 23:05:02 +01:00
parent a6e62ddc1b
commit 74af90eaa6
1 changed files with 3 additions and 0 deletions

View File

@ -62,6 +62,9 @@ class ExcludeFolderDialog(val activity: SimpleActivity, val selectedPaths: List<
return pathsList return pathsList
pathsList.add(basePath) pathsList.add(basePath)
if (basePath == "/")
basePath = ""
for (part in parts) { for (part in parts) {
basePath += "/$part" basePath += "/$part"
pathsList.add(basePath) pathsList.add(basePath)