Desktop OSs allow for a file to be created in exclusive mode enabling simple concurrency-serializing mechanism.
O_EXCL Ensure that this call creates the file: if this flag is
specified in conjunction with O_CREAT, and pathname
already exists, then open() fails with the error EEXIST.
EEXIST | _O_CREAT and _O_EXCL flags specified, but filename already exists.
Future<File>> create(
{bool recursive = false,
bool exclusive = false}
)
Desktop OSs allow for a file to be created in exclusive mode enabling simple concurrency-serializing mechanism.
from https://man7.org/linux/man-pages/man2/open.2.html
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/open-wopen
This currently is not available for Dart apps.
This can be fixed via new optional
exclusiveparameter to https://api.flutter.dev/flutter/dart-io/File/create.html: