[sftp] simplify isDir handling

Authored by sitter on Sep 21 2018, 12:16 PM.

Description

[sftp] simplify isDir handling

  • new macro KSFTP_ISDIR akin to S_ISDIR checks if a given attributes is a directory
  • ternary mutate dir||file error

this has the advantagous side effect of all commands now having an error()
or finished() call at the function end making it clear that we always
finished somehow

Details

Committed
sitterSep 21 2018, 12:34 PM
Parents
R320:076fdbfc0caa: [sftp] boilerplate comment that sftpLogin calls finished()
Branches
Unknown
Tags
Unknown