-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.closed-as-intendedClosed as the reported issue is expected behaviorClosed as the reported issue is expected behaviorlibrary-iotype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
var outputFile = File("a.jpg");
if (!outputFile.exist()) {
// another program creates a.jpg
await outputFile.writeAsBytes(jpegData); // boom overwrite!!!
}please add an option to File.writeAsBytes to avoid overwriting.
maybe something like await outputFile.writeAsBytes(jpegData, exclusive: true);
stephane-archer and smastephane-archer
Metadata
Metadata
Assignees
Labels
area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.closed-as-intendedClosed as the reported issue is expected behaviorClosed as the reported issue is expected behaviorlibrary-iotype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug