trust
trust copied to clipboard
Remove-Item failure on AppVeyor
The build and deploy still works, but I get this message near the end. I'm not familiar with Powershell so I'm not really sure what's going on.
Remove-Item : The method or operation is not implemented.
At C:\projects\eson\ci\before_deploy.ps1:22 char:1
+ Remove-Item $STAGE
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Remove-Item], NotImplementedException
+ FullyQualifiedErrorId : System.NotImplementedException,Microsoft.PowerShell.Commands.RemoveItemCommand
I encountered it after changing the layout of $STAGE's contents in a way I think caused the earlier Remove-Item *.* to match no files. I'm not clear on exactly which part failed but I changed
Remove-Item *.* -Force
Set-Location ..
Remove-Item $STAGE
to
Set-Location ..
Remove-Item $STAGE -Force -Recurse
to recursively delete $STAGE and that works.