xf-dev:generate-finders fails if directory Finder does not exist yet

Kirby

Well-known member
Affected version
2.3.7
Calling xf-dev:generate-finders for an Add-on that does not already have a Finder directory fails with error message

File for <AddODir>/Finder/<FinderClass>.php could not be written to. Check directories exist and permissions.

This is somewhat annoying, IMHO the command should just auto-create the directory if it does not exist yet.
 
Back
Top Bottom