Skip to main content
Extracts the directory portion from a file path. For example, ‘/uploads/image.jpg’ returns ‘/uploads’.