Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build-server.ps1 prints lots of Remove-Item errors #471

Open
felixfbecker opened this issue Apr 5, 2018 · 0 comments
Open

build-server.ps1 prints lots of Remove-Item errors #471

felixfbecker opened this issue Apr 5, 2018 · 0 comments

Comments

@felixfbecker
Copy link

build-server.ps1 runs Remove-Item $dir -Recurse, but because the directories are not empty and -Force is not used, this fails.

Remove-Item $dir -Recurse

Remove-Item : You do not have sufficient access rights to perform this operation.
At /Users/felix/git/omnisharp-node-client/build-server.ps1:12 char:1
+ Remove-Item $dir -Recurse
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : PermissionDenied: (.vscode:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
 
Remove-Item : You do not have sufficient access rights to perform this operation.
At /Users/felix/git/omnisharp-node-client/build-server.ps1:12 char:1
+ Remove-Item $dir -Recurse
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : PermissionDenied: (.gitignore:FileInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
 
Remove-Item : You do not have sufficient access rights to perform this operation.
At /Users/felix/git/omnisharp-node-client/build-server.ps1:12 char:1
+ Remove-Item $dir -Recurse
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : PermissionDenied: (.gitattributes:FileInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
 
Remove-Item : Directory /Users/felix/git/omnisharp-node-client/vendor/omnisharp-roslyn/omnisharp-roslyn-1.27.2/test-assets/test-projects/CsProjectSample01 cannot be removed because it is not empty.
At /Users/felix/git/omnisharp-node-client/build-server.ps1:12 char:1
+ Remove-Item $dir -Recurse
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : WriteError: (CsProjectSample01:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant