Simplify directory traversal