Empty directories seem to require a weird trick.