Doesn't work with rename #27

wheresrhys opened this Issue Oct 23, 2013 · 3 comments


None yet

3 participants

            expand: true,
            src: './*.md',
            dest: './docs/',
            ext: '.html',
            rename: function (dest, src) {
              return dest.indexOf('README') === 0 ? './docs/index.html' : dest;

And I get the error

Warning: Unable to read "./,./" file (Error code: ENOENT). Use --force to continue.

It does however work if I set src: './' and run over just a single file. I've tried several variants of what src should accept and any that retrieve more than one file end up throwing an error when it comes to renaming.

Using latest grunt and grunt-markdown

Same thing here, without using rename : one file works fine, multiple file returns an "Unable to read". Tried several files, tried several files declarations, permissions are fine.

treasonx commented Dec 3, 2013

I will be doing a major refactor at the end of this month. I'll address this issue at that point and it will be a major version bump.

Do you have a workaround in the meantime ?

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