Fix logic of setting up syncs

This commit is contained in:
Manuel Thalmann 2023-07-02 20:45:25 +02:00
parent 200f2a3e62
commit d13527be19

View file

@ -236,10 +236,14 @@ class Context {
Sort-Object -Unique | `
Measure-Object -Maximum).Maximum + 1;
$configName = "Folders" + (if ($virtualFiles) { "WithPlaceholders" } else { "" });
$configName = "Folders";
$localPath = $localPath -replace "\","/";
$targetPath = $targetPath -replace "\","/";
if ($virtualFiles) {
$configName += "WithPlaceholders";
}
Add-Content $this.GetNextcloudConfigFile() `
[string]::Join(
"`n",