Property SkipUnreadableDirectories
SkipUnreadableDirectories
In a recursive listing, leave out a subdirectory the server will not let this user read
(PermissionDenied) and go on with the entries after it, as find does after its warning (default
false: the listing ends with the SftpException). The subdirectory's own entry is still returned (when it matches
Pattern), as it comes before its contents; UnreadableDirectory is told about each one left out.
public bool SkipUnreadableDirectories { get; init; }
Property Value
Remarks
Only a refusal for want of permission qualifies: a subdirectory deleted meanwhile, any other status, and a broken session or connection still end the listing. The directory listed (the top one) is not skipped: when it cannot be read, the listing fails. With FollowSymbolicLinks, a link to a directory that cannot be read is left out the same way.