childDirectory function

Directory childDirectory(
  1. Directory dir,
  2. String sub
)

get a child as a directory

Implementation

Directory childDirectory(Directory dir, String sub) {
  return dir.fs.directory(dir.fs.path.join(dir.path, sub));
}