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

Recycle hidden files #8

Open
TrueXakeP opened this issue Dec 10, 2021 · 0 comments
Open

Recycle hidden files #8

TrueXakeP opened this issue Dec 10, 2021 · 0 comments

Comments

@TrueXakeP
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants