![]()
[<<]Message[>>] Author[>>] Subject[>>] Thread[>>]
Number : 10641 Date : 2005-02-26 Author : jeffneely2003 Subject : Flatten Subdirectories? Size(KB) : 0
Is it possible to flatten the subdirectories within a path, but leave the files as originally named? To clarify, I have the following: /aaa/bbb/ccc/f1.jpg /aaa/bbb/ccc/f2.jpg /aaa/ddd/f3.jpg /aaa/eee/fff/ggg/f4.jpg /aaa/eee/fff/ggg/hhh/f5.jpg I want this: aaa_bbb_ccc/f1.jpg aaa_bbb_ccc/f2.jpg aaa_ddd/f3.jpg aaa_eee_fff_ggg/f4.jpg aaa_eee_fff_ggg_hhh/f5.jpg In other words, my resulting directory structure will be a single level deep, concatenating all of the subdir names. Arbitrarily deep files will all now reside 1 folder deep in the final structure.
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.