Unnecessary to set dirpath to None.