fabric/fabric — pull request #1147 by ikalnitsky (2014-06-24 11:38:00+00:00)
Title: Fix `isdir` checking inside of SFTP class

We have to use `stat` instead of `lstat` inside `isdir` method, since the first one returns `True` even for symlinks to folders.

The fix is very important when we need to download some folder that contains a symlink to another one.