Skip to content

Commit

Permalink
fix(functions): create Cursors\Edited folder if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
SunsetTechuila committed Mar 2, 2024
1 parent 3d7332d commit ce51c9f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Functions.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,15 @@ function Copy-Cursors {
$originalCursorsFolder = [PathsProvider]::GetDynamicPaths().OriginalCursorsFolder
}
process {
if (-not (Test-Folder -Path $editedCursorsFolder)) {
$Parameters = @{
Path = $editedCursorsFolder
ItemType = 'Directory'
Force = $true
}
New-Item @Parameters | Out-Null
}

$Parameters = @{
Path = "$originalCursorsFolder\*"
Destination = $editedCursorsFolder
Expand Down

0 comments on commit ce51c9f

Please sign in to comment.