Skip to content

Get-ChildItem2 fails if UNC-Path contains .lnk file #46

@karlheinz-hildebrandt

Description

@karlheinz-hildebrandt

Using Get-ChildItem2 on a network UNC-Path shows error, if the folder contains a .lnk file. Error is:

Get-ChildItem2 : (3) The target directory is a file, not a directory: [\]
In Zeile:1 Zeichen:1

  • Get-ChildItem2 -Directory -path \
  •   + CategoryInfo          : NotSpecified: (\\<UNC-path>:String) [Get-ChildItem2], DirectoryNotFoundException
      + FullyQualifiedErrorId : DirUnspecifiedError,NTFSSecurity.GetChildItem2
    
    

Using Get-ChildItem runs without problem.

Metadata

Metadata

Assignees

Labels

BugClearly a bug that need to be fixed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions