ddeboer/php-ssh — comment on commit d1db61c20d6eeef27b6d9279d72168158454b12f
File: src/Ssh/Sftp.php line 216
By ddeboer:

Agreed on the separation.

Unfortunately, the `@` is necessary. As `is_dir()` seems to be buggy over SFTP, I run every item in a directory (whether it's a file or a directory) through `scandir()`. According to the [PHP manual](http://php.net/manual/en/function.scandir.php), `scandir($dir)` will throw a warning if `$dir`is not a directory. I have to suppress that warning with `@`.