Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Directory issue using generate-xxxxx command in Windows #40
Many of the Moosh commands I've tried seem to work in Windows however the one related to generating a new plugin don't. For example,
...produces the following error that \moodle\blocks\hello isn't a directory:
If I try to create the directory first, it then complains that the directory already exists.
The same thing happens with the generate-module command. I would assume that it is likely a problem across the board for all of the generate-xxxx commands and anywhere in Moosh where it is assumed that a directory will be automatically created if it doesn't already exist.
I had better results running Moosh under Cygwin.
I guess this is a difference in behaviour between Windows and Linux versions of cp command. I'm not able to support windows version unfortunately - I only use (test on) and maintain moosh using Linux. I would, however accept patches with windows-specific fixex, provided they don't break Linux :).