Stop output of subdirectories
See original GitHub issueI have a directory structure with:
icons/main/[svgs in here]
icons/secondary/[svgs in here]
icons/other/[svgs in here]
When I run svgr with:
npx @svgr/cli -d outputDir icons
then outputDir is filled with the main
, secondary
and other
directories (each containing the new React components).
Is there an in-built way to add them all to the root of the output directory?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
shell - Bash - Excluding subdirectories using the find command
Since there's now no output-producing or executing primary in the expression, it is evaluated as: ... Pruning all permission denied directories in find....
Read more >Ask Question - Unix StackExchange
How can I suppress printing the full path to subdirectories when using CDPATH=".:/some/path"? ... causes cd SUBDIR to stop working if ./SUBDIR and ......
Read more >Make du's output more useful with this neat trick - Red Hat
Sort your disk usage data in any order you want with these du command options.
Read more >MS-DOS and Windows Command Line Dir Command
The dir command displays a list of files and subdirectories in a directory. ... Use /-C to disable the display of separator.
Read more >xcopy | Microsoft Learn
Copies files and directories, including subdirectories. For examples of how to use this command, see Examples.
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
Hello @Eli-Nathan, no unfortunately it is not possible. You have to flatten directory by yourself before running SVGR.
This will not happen, I don’t want to deal with conflicts of a same filename in two directories.