Closed Drllap closed 2 years ago
Looks like this only happens when the symbolic link is the only thing in the folder
I found the issue here
If there is only one item in the path Get-ChildItem
returns FileInfo
. The Length
member of FileInfo
is the file size which is zero in the case of symbolic links.
A potential fix would just be to delete this if statement.
Thank you @Drllap for your issue report and your excellent description including reproduction steps. I will look into this when I have a bit of time over :)
I have created a pull request that fixes this: #11
Hi @Drllap . Really appreciate the PR! However, I had already fixed this in a different branch, just didn't get around to merge and actually deploy it up... Now version 1.0.4 is in the main branch and also deployed to Powershell Gallery. Please let me know if there are any issues still :)
Script I used for testing:
Calling![image](https://user-images.githubusercontent.com/3659986/140199220-438f8bdf-503d-4186-a71d-4f7f64a8fc95.png)
PowerColorLS
doesn't output anything:Get-ChildItem
output:Modules and versions:![image](https://user-images.githubusercontent.com/3659986/140199574-4467c4db-44b4-4163-beee-36412cdc3986.png)
Using: