Path utility functions