On Wed, Aug 26, 2015 at 03:12:48PM +0300, Andrey Wagin wrote: > > We can call stat() and it will show whether it was a file or a directory. Ah, indeed. Thanks, I'll prepare patches on top.