Closed the0ne closed 5 years ago
@the0ne,
As far I can see, editing an existing file (size > 0) (for example autorun.lua) in a low memory scenario, unlinks the file.
@jolivepetrus did you try that on-device or by analyzing the source code? actually bCreated should be false for pre-existing files so those shouldn't be deleted in any case
if the memory is too low, the editor will exit with error but leave a previously-not-existing but newly created file in the file system.
now, in case of error, we make sure to unlink the file again.