DirectoryValidator specs

[#52833605]