copy and keep original folder structure
See original GitHub issuei have a list of files to copy:
gulp.src([list of js files])
.pipe(gulp.dest(build_dir))
the files are copied, but flattened. how can i reserve original directory structure? i can’t find an option for that
Issue Analytics
- State:
- Created 10 years ago
- Reactions:1
- Comments:38 (16 by maintainers)
Top Results From Across the Web
cp - Copy specific file type keeping the folder structure
Now I want to copy all *. csv files to another destination keeping the folder structure. It works by doing: cp --parents *....
Read more >Copy Folder Structure without Copying Files in Windows
The built-in XCOPY command in Windows can copy the directory or directory tree (i.e., recursively). The switches /T /E make sure that only...
Read more >How to copy an entire folder structure without copying the files ...
Now open a Windows command window and run the following command. It's the /T option that copies just the folder structure not the...
Read more >How to copy files while maintaining original folder structure?
The best way I have found to transfer that kind of data while maintaining the folder structure is through Robocopy.
Read more >How to copy a folder structure on Windows 10 - AddictiveTips
First, move the folder that you want to replicate the structure of, to a new folder that has nothing else in it. Open...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you want to keep the sub-folders, you have to define the base in the options (2nd argument) e.g., to keep “assets/file.doc” in “dist/”:
We are allowing functions in gulp.dest so you could do this
Track https://github.com/wearefractal/vinyl-fs/pull/15