Quantcast
Channel: file-permissions – Ringing Liberty
Viewing all articles
Browse latest Browse all 23

How to tell the difference between "No such file or directory" and "Permission Denied"

$
0
0
wfsaxton asked: I’d rather not parse STDERR, but I can’t think of another way to tell the difference, programmatically, between the two: $ ls /net/foo.example.com/bar/test /net/foo.example.com/bar/test: Permission denied $ ls

Viewing all articles
Browse latest Browse all 23

Trending Articles