Spec-Zone.ru › Dart 2

dart:io

createSync abstract method

void createSync(
  1. {bool recursive = false,
  2. bool exclusive = false}
)

Synchronously creates the file.

If recursive is false, the default, the file is created only if all directories in its path already exist. If recursive is true, all non-existing parent paths are created first.

If exclusive is true and to-be-created file already exists, this operation completes the future with a FileSystemException.

If exclusive is false, existing files are left untouched by createSync. Calling createSync on an existing file still might fail if there are restrictive permissions on the file.

Throws a FileSystemException if the operation fails.

Implementation

void createSync({bool recursive = false, bool exclusive = false});

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-io/File/createSync.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API