mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-14 08:24:05 +00:00
74358c188a
Fixes #123. The code assumes that every File that has its link_target() method called would first have been checked to make sure it’s actually a link first. Unfortunately it also assumed that the only thing that can go wrong while following a link is if the file wasn’t a link, meaning it crashes when given a link it doesn’t have permission to follow. This makes the file_target() method able to return either a file or path for displaying, as before, but also an IO error for when things go wrong.
3 lines
232 B
Plaintext
3 lines
232 B
Plaintext
[36ml[1;33mr[31mw[32mx[0m[33mr[31mw[32mx[33mr[31mw[32mx[0m [1;32m0[0m root [34m29 Oct 17:23[0m [36m/proc/1/root[0m
|
||
[38;5;244m└──[0m [31m<Permission denied (os error 13)>[0m
|