Version: 1.7.27.0
Frequency: Consistently
Severity: High
(Low - quality of life, workflow optimization, rare enough to not impact production, etc…
High - critical but workarounds are available, important feature not working as expected, frequent enough to impact production
Blocker - prevents from working on the project, prevents from releasing the product)
Marketplace package name: if applicable
Context: Any time the WASM module tries to delete files / directories from the work folder that are set to read-only.
Similar MSFS 2020 issue: 2020 has the same issue.
Bug description:
Files in the work folder can sometimes be set to read-only by external programs like antivirus software. The WASM module can’t modify or delete files and directories that are set to read-only.
Tried with remove(), rmdir(), and fsIOOpen(FsIOOpenFlag_WRONLY, […]). None of them work.
The read-only can’t be removed with chmod since it’s not available in WASM.
Repro steps:
- Create a file in the work folder.
- In the file explorer, right-click on the file and open properties.
- In the attributes enable ‘read-only’ and apply.
- With WASM, try to delete or write to the file.
Attachments:
Private attachments: Send a PM to @PrivateContent with the link to this topic and the link to download your content