Make DirectoryEntry validate `perms` is consistent with the entry type
Should be straightforward, but we need to check it wouldn't break any entry in the DB/journal first.
Migrated from T3816 (view on Phabricator)
Should be straightforward, but we need to check it wouldn't break any entry in the DB/journal first.
Migrated from T3816 (view on Phabricator)