Adds is_directory to trace database
Handles mkdir()