arma3 / DokanPbo

Mount PBO files as drives or folders in the file system
GNU Lesser General Public License v3.0
23 stars 5 forks source link

Allow on the fly conversion to writeable file #15

Open dedmen opened 4 years ago

dedmen commented 4 years ago

https://github.com/arma3/DokanPbo/blob/dd79448b16dbe42798cbc540e719f340bcd9e064/DokanPbo.Core/PboFS.cs#L262-L263

Let's say we edit a script file and press save, currently it's access denied, even though dokanPbo could make the directory writeable, and create a writeable copy of the file and then use that.

dedmen commented 4 years ago

Then we can also strip the "Readonly" prop from pbo files. But we have to keep it on virtual pbo files like debin config.

We might not immediately want to convert once someone opens a file as writeable. We only really need to do it once the actual write is done.