Skip to content

Recycle hidden files #8

Description

@TrueXakeP

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions