V
V
Vasily Vasilyev2018-01-28 15:30:34
Layout
Vasily Vasilyev, 2018-01-28 15:30:34

The path to the file in the folder structure of any nesting?

There is an approximate folder structure with images of different nesting:

./src
>  blocks
   >  logo
        | logotype.svg
   >  header
        | bg.png
        > header-pic
            |  pic.svg
   >  footer
        |  bg.png

With one nesting (all images in one folder) with the syntax, everything is clear - './src/**/*.{png, jpg, gif}'
But what if you need images from all child folders (as in the example), and the folder structure is unknown (constantly changes during development)?
PS: in words - "images from all subfolders of the folder ./src"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zooks, 2018-01-28
@Basil_Dev

'src/**/*.{png,jpg,gif}'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question