Meaning Of A Double Star (**) In A File Path
I was reading here on Stack Overflow about ** in a path, as in this example: src/js/**/*.js I would like to ask if ' ** ' means 'any nested directory' please?!
Solution 1:
The double star in this case means all folders within the current folder, with the current folder being src/js
So in full, find all files with a .js extension, in all subfolders of src/js
Solution 2:
The double asterisks are placeholders or instructions to the recursive interpreter to go through the files and folders. It is a simple, recursive wildcard while only one asterisk means all without recursion.
'**/*.js';
All files with the extension .js from here onwards.
'lib/**/*.js';
All files with the extension .js in the folder lib and its subfolders.
'js/**';
All files in the folder js and its subfolders.
Post a Comment for "Meaning Of A Double Star (**) In A File Path"