lsd icon indicating copy to clipboard operation
lsd copied to clipboard

Handle `-L` with broken symlink

Open meain opened this issue 5 years ago • 0 comments

As of now, lsd does not display the file when using -L on a broken link.

Expected behavior

This is from gnu ls.

$ gls ~/.config/calcurse-work -Ll
gls: cannot access '/Users/meain/.config/calcurse-work/hooks': No such file or directory
total 8
-rw-r--r-- 1 meain staff    0 Jun  5  2020 apts
drwxr-xr-x 4 meain staff  128 Jun  5  2020 caldav
-rw-r--r-- 1 meain staff  892 Jun  5  2020 conf
l????????? ? ?     ?        ?            ? hooks
-rw-r--r-- 1 meain staff 1205 Jun  5  2020 keys
drwx------ 2 meain staff   64 Jun  5  2020 notes
-rw-r--r-- 1 meain staff    0 Jun  5  2020 todo

Actual behavior

The hooks directory is completely skipped from the list of files.

$ lsd ~/.config/calcurse-work -Ll
lsd: /Users/meain/.config/calcurse-work/hooks: No such file or directory (os error 2)
.rw-r--r--   0B 6 months ago apts
drwxr-xr-x 128B 6 months ago caldav
.rw-r--r-- 892B 6 months ago conf
.rw-r--r-- 1.2K 6 months ago keys
drwx------  64B 6 months ago notes
.rw-r--r--   0B 6 months ago todo

meain avatar Dec 11 '20 11:12 meain