file method

File file(
  1. String fileName
)

Creates a File instance with the given fileName in this directory.

Example:

final dir = Directory('path/to/dir');
final file = dir.file('test.txt'); // Creates File at 'path/to/dir/test.txt'

Implementation

File file(String fileName) => File(p.join(path, fileName));