0

Here is what I need to do: for example, I have such directory structure:

├── libs
│   ├── folder1
│       ├── font
│           ├── font_name_1
│   ├── folder2
│       ├── fonts 
│           ├── font_name_2
│           ├── font_name_3

Is there some possibility to get font/fonts folders content (just content, without parent directories) and move it to another folder?

Something like this:

var build = gulp.src(['app/libs/**/font/**/*.*', 'app/libs/**/fonts/**/*.*'])

.pipe(gulp.dest('dist/fonts')) but I need to grab only those directories, that are inside of font or fonts directories

Result structure that I need to get:

├── fonts
│   ├── font_name_1
│   ├── font_name_2
│   ├── font_name_3

0 Answers0