Get the parent directory of the given path
import "file" print file.parent("/home/user/docs/report.txt") // "/home/user/docs"
There was an error while loading. Please reload this page.