Dir constructor

Dir(
  1. String path, {
  2. bool listDirectory = false,
  3. FileSystem? fileSystem,
})

Creates a Dir instance.

The path parameter specifies the path to the directory. The listDirectory parameter specifies whether to list the contents of the directory. The fileSystem parameter specifies the file system to use.

Implementation

Dir(this.path, {this.listDirectory = false, file.FileSystem? fileSystem})
  : fileSystem = fileSystem ?? const local.LocalFileSystem();