Hi All,

I am trying to create a script which can traverse down a folder structure to
list all files and folders and then rename all files or folders not called
".dat".

Fx I have top folders called a 5 digit numbers and under here a number of
files and folders (in various depths). I would like to give every folder or
file not called ".dat" a prefix named after the 5 digit top folder.

I can traverse down the structure and find all files and folders using
File::Find but I cant figure out how to pick up the top folder name for the
renaming of the files/folders below.

Can anybody give me a hint to get on with this?

Thanks,

Jakob

Reply via email to