trust icon indicating copy to clipboard operation
trust copied to clipboard

Remove-Item failure on AppVeyor

Open michaelmior opened this issue 8 years ago • 1 comments

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

michaelmior avatar Sep 22 '17 12:09 michaelmior

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.

commonquail avatar Mar 03 '18 11:03 commonquail