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 | `
|
Sort-Object -Unique | `
|
||||||
Measure-Object -Maximum).Maximum + 1;
|
Measure-Object -Maximum).Maximum + 1;
|
||||||
|
|
||||||
$configName = "Folders" + (if ($virtualFiles) { "WithPlaceholders" } else { "" });
|
$configName = "Folders";
|
||||||
$localPath = $localPath -replace "\","/";
|
$localPath = $localPath -replace "\","/";
|
||||||
$targetPath = $targetPath -replace "\","/";
|
$targetPath = $targetPath -replace "\","/";
|
||||||
|
|
||||||
|
if ($virtualFiles) {
|
||||||
|
$configName += "WithPlaceholders";
|
||||||
|
}
|
||||||
|
|
||||||
Add-Content $this.GetNextcloudConfigFile() `
|
Add-Content $this.GetNextcloudConfigFile() `
|
||||||
[string]::Join(
|
[string]::Join(
|
||||||
"`n",
|
"`n",
|
||||||
|
|
Loading…
Reference in a new issue