microsoft / WinObjC

Objective-C for Windows
MIT License
6.24k stars 808 forks source link

WSPFileSavePicker (premakes) the regular file of the selected path #2893

Closed edvv closed 6 years ago

edvv commented 6 years ago

Apparently when WSPFileSavePicker is used to assign a path for saving it also makes the regular file defined by the path selected in the picker. This is not good because calling code does not know if that path is a new file to create, an existing file to overwrite, or deny writing to an existing file. In addition, the path selected may need to be a directory instead of a regular file.

Is there anyway to prevent WSPFileSavePicker from making the path (leaf node regular file) that is defined by the picker?

edvv commented 6 years ago

I closed this because it is a UWP issue, not specific to winobjc, and a workaround was developed.