Fix logic of setting up syncs
This commit is contained in:
parent
854839edcf
commit
78a296fdf1
1 changed files with 5 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue