Skip to content

Directory issue using generate-xxxxx command in Windows #40

Description

@michael-milette

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions