diff --git a/scripts/Windows/Scripts/Context.ps1 b/scripts/Windows/Scripts/Context.ps1 index 40b68b52..be9c6244 100644 --- a/scripts/Windows/Scripts/Context.ps1 +++ b/scripts/Windows/Scripts/Context.ps1 @@ -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",