corner case: node directory with same name as document (not allowed!)