get a child as a directory
Directory childDirectory(Directory dir, String sub) { return Directory(join(dir.path, sub)); }