Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directory issue using generate-xxxxx command in Windows #40

michael-milette opened this issue May 29, 2014 · 1 comment

Directory issue using generate-xxxxx command in Windows #40

michael-milette opened this issue May 29, 2014 · 1 comment


Copy link

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,

moosh generate-block hello

...produces the following error that \moodle\blocks\hello isn't a directory:

cp: copying multiple files, but last argument ('c:\moodle/blocks/hello') is not a directory
Try `cp --help' for more information.
Copying from module template failed

If I try to create the directory first, it then complains that the directory already exists.

Already exists: 'c:\moodle/blocks/hello'
Not creating new block hello

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.

Copy link

tmuras commented May 29, 2014

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 :).

@tmuras tmuras added wontfix and removed wontfix labels Jun 1, 2014
@tmuras tmuras closed this as completed Jun 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants