createSync method

  1. @override
Directory createSync({
  1. bool recursive = false,
})
override

Implementation

@override
Directory createSync({bool recursive = false}) {
	super.createSync(recursive: recursive);
	if (!existsSync()) {
		if (!recursive) {
			window.localStorage['${absolute.uri}'] = '{dir}';
		} else {
			for (Directory dir = this; !dir.existsSync() && dir.uri.pathSegments.isNotEmpty; dir = dir.parent) {
				dir.createSync();
			}
		}
	}
	_emit(FileSystemEvent.create);
	return this;
}