Deleted Useless Directory Query Function