When deleting file tree nodes, make sure the parent directory remains a directory.
Merge pull request #6467 from adobe/iwehrman/issue-6436

Ensure that the parents of deleted tree nodes remain directories in the file tree