createNew method

void createNew(
  1. bool createNew
)

The option to create a new file, failing if it already exists - No file is allowed to exist at the target location. If set, .create() and .truncate() are ignored.

Implementation

void createNew(bool createNew) {
  _willCreateNew = createNew;
}