-
Notifications
You must be signed in to change notification settings - Fork 24
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
Fatal error: Unable to write "dist/" file (Error code: EISDIR). #12
Comments
I've also tried running this without the subdirectory src, eg:
But unfortunately I still get the same error. I'm not sure if the task is looking for a file instead of a directory..... |
try files: [
{cwd: '.', src: ['*.html'], dest: 'dist'}
] |
As discovered in issue [12](bezoerb#12), when trying to write multiple files to a folder, the write fails because it assumes that the path is a file and not a folder. I have updated the code to check first if the destination is a folder and update accordingly. See [this issue](http://stackoverflow.com/a/20417119/335567) on SO for more information.
Hmmm...that didn't seem to work for me. I've created a pull request and fixed the issue. Let me know what you think! |
@deanhume pr landed. src: '*.html',
dest: 'dist/' should work as expected. Wanna give it a try? |
Hmmmm...almost there - except I get a different error this time.
I am running it against 12 files. Not sure, but my original pull request seemed to work. Any ideas? Thanks for you help! |
If you need any more detail around this error, please let me know! |
@deanhume more detail please ;) |
@deanhume any updates on this? |
Hey @bezoerb I'm also experiencing the same issue:
And the critical: {
dist: {
options: {
base: './',
css: [
'dist/assets/css/style.css'
],
ignore: ['@font-face'],
width: 320,
height: 480
},
src: ['dist/**/*.html'],
dest: 'test/'
}
}, It works fine if I change Versions:
Windows 8.1 Any ideas? Thanks in advance! |
@bezoerb @deanhume the problem seems to be that If I change the Grunt task to:
It works as expected. If I change it to:
It creates a file If I change it to e.g.
i.e. a directory
|
@michaelthorne thanks for the debugging :) |
@bezoerb no worries! Let me know if there's any testing I can help with. Thanks. |
Hi
I am running the following configuration in my Gruntfile:
The idea is that I pick up all HTML files and then dump them into my "dist" folder. When I run this, I unfortunately get the following error:
"Fatal error: Unable to write "dist/" file (Error code: EISDIR)."
If I run the task with --stack, I get the following output
The text was updated successfully, but these errors were encountered: