User tests: Successful: Unsuccessful:
Pull Request for Issue # .
This change was created with the help of AI (Claude Code).
The CSV export creates the target directory with mkdir() but ignores the result. If the directory can't be created (permissions, invalid path), the command continues and only fails later with "Unable to open target file path for writing operations", which hides the actual cause.
The command now stops with "Unable to create the target directory: …" in that case.
Run php cli/joomla.php weblinks:sync-csv --action=export --file=/root/not-allowed/export.csv as a user without write access to the parent directory (or use a path on a read-only location).
Error: Unable to create the target directory: …
PHP warning from mkdir() followed by "Unable to open target file path for writing operations".
None