We need to get a reference to the directory itself in order to be able to do a stat() to a directory (which is what WebDAV does to check if node exists).
This is why I'm replacing LIST with LIST -a.