Skip to content

Commit ce51c9f

Browse files
fix(functions): create Cursors\Edited folder if it doesn't exist
1 parent 3d7332d commit ce51c9f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Functions.psm1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,15 @@ function Copy-Cursors {
407407
$originalCursorsFolder = [PathsProvider]::GetDynamicPaths().OriginalCursorsFolder
408408
}
409409
process {
410+
if (-not (Test-Folder -Path $editedCursorsFolder)) {
411+
$Parameters = @{
412+
Path = $editedCursorsFolder
413+
ItemType = 'Directory'
414+
Force = $true
415+
}
416+
New-Item @Parameters | Out-Null
417+
}
418+
410419
$Parameters = @{
411420
Path = "$originalCursorsFolder\*"
412421
Destination = $editedCursorsFolder

0 commit comments

Comments
 (0)