validateFileWritable

Validates that the file is writable.

void
validateFileWritable
(
string option
)
(
string file
,
lazy string msg = "cannot open file `%s` for writing: %s"
)

Parameters

file
Type: string

File name of the file to be tested.

Throws

darg_plus.exception.ValidationError if file cannot be opened for writing.

See Also

validate, std.algorithm.searching.endsWith

Meta