SaveOptions.CreateDirectory

SaveOptions.CreateDirectory property

If true and the directory does not exist, the directory will be automatically created before saving the file.

public bool CreateDirectory { get; set; }

Remarks

The default value is false.

See Also