You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running replace on a source target that contains a folder with a period in the title, the following error is thrown.
Warning: Unable to read "../testing/foo.bar" file (Error code: EISDIR). Use --force to continue.
In this case, foo.bar is a folder, not a file, but the script is attempting to open it as if it were a file.
I've found that the issue is caused by the way that grunt.file.expand is called and then iterated through in the replaceFileMultiple function. When I updated the grunt.file.expand call to include only files it fixes the issue. The updated line should look like this:
When running replace on a source target that contains a folder with a period in the title, the following error is thrown.
In this case,
foo.bar
is a folder, not a file, but the script is attempting to open it as if it were a file.I've found that the issue is caused by the way that
grunt.file.expand
is called and then iterated through in thereplaceFileMultiple
function. When I updated thegrunt.file.expand
call to include only files it fixes the issue. The updated line should look like this:The text was updated successfully, but these errors were encountered: