문제

I'm getting this error:

Warning: Unable to write file (Error code: EISDIR)

I'm trying to copy all files and sub folders in a directory.

The below works when I omit ** but then none of my files are copied.

Any ideas how to fix the error?

copy: {
        main: {
            options: {
                expand: true
            },
            files: [
                { src: 'public/static/**', dest: '../../../public/packages/xyz/hello'}

            ]
        }
    },
도움이 되었습니까?

해결책

Your dest is interpreted as a file, but is actually a directory, thus the error. Try postfixing it with a slash:

dest: '../../../public/packages/xyz/hello/'
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top