open method
Creates a FileHandle
to handle path
.
Implementation
Future<FileHandle> open(
dynamic path, {
FileMode mode = FileMode.read,
bool recursive = false,
}) async {
if (recursive) {
await directory(p.dirname(path)).create(recursive: true);
}
return file(path).openHandle(mode: mode);
}