# Gulp copying the files in the wrong folder

**URL:** https://discourse.roots.io/t/gulp-copying-the-files-in-the-wrong-folder/6122
**Category:** sage
**Tags:** gulp
**Created:** 2016-03-05T18:58:00Z
**Posts:** 3

## Post 1 by @Koli14 — 2016-03-05T18:58:00Z

I installed [Blueimp/Gallery](https://github.com/blueimp/Gallery) with bower: `bower install blueimp-gallery --save`.  
I changed the .bower.json file of Blueimp/Gallery to [this](https://github.com/blueimp/Gallery/blob/3f8cfd36734d438286096a22eba8bb9500cfbd75/bower.json) (because it do not have one now).  
The command `gulp` puts the svg-files of Blueimp/Gallery to `dist/fonts` instead of `dist/images`, and it puts the images to `dist/images`, but Blueimp/Gallery search them in the not existing`dist/img` folder.

I also have a similar problame with slick-carousel. That does not file the font files. It looks for them in `dist/styles/fonts/`, but they are in `dist/fonts/`

Shall i write a [copy](https://discourse.roots.io/t/missing-image-or-font-files-for-bower-packages/4914/6) function for all these problems?  
Or is there a better solution?  
Or I do something wrong?

---

## Post 2 by @kalenjohnson — 2016-03-05T21:09:04Z

For one, you don’t need to add a bower.json file to the Gallery plugin, you can add any overrides (the files you want from the package) to the Sage bower.json file.

If you are using the css files from the package, then yes, it is probably assuming a specific folder structure. You will need to override the CSS with the proper folder structure for your project in your own CSS.

With something like Slick carousel, you can use their pre-processor files and override the directory variable I am pretty sure.

---

## Post 3 by @Koli14 — 2016-03-07T17:56:57Z

@kalenjohnson, thanks for the overrides tip, you are right!

I decided not to overwrite the CSS of the package, but added `.pipe(gulp.dest(path.dist + 'img'))` to my gulpfile.js, to the fonts and images gulp tasks.
