Added handler for when the directory flag was not set.