-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
Description
Looks like I can't add -Force flag to the Remove-ItemSafely to move hidden files to recycle bin like Get-ChildItem 'somewere' -Force | Remove-ItemSafely -Force.
Without it, on hidden files, I get messages that the item was not found.
get-item : Can't find item C:\Users\root\ (1).bash_profile.
Line:1 char:1
+ get-item 'C:\Users\root\ (1).bash_profile'
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\root\ (1).bash_profile:String) [Get-Item], IOException
+ FullyQualifiedErrorId : ItemNotFound,Microsoft.PowerShell.Commands.GetItemCommand