Make std.file.getLinkAttributes safe
Merge pull request #2516 from tom-tan/safe-file-getLinkAttributes

Make std.file.getLinkAttributes safe