corner cases for Directory