Rename files with same name as parent folder
Show older comments
I have a series of folders with unique names and subfolders containting files within those folders that have the same name:
Folder A
Subfolder 1
File 1
Folder B
Subfolder 1
File 1
Folder C
Subfolder 1
File 1
How do can I loop through all the folders and name the files as parent folder like this:
Folder A
Subfolder 1
File A
Folder B
Subfolder 1
File B
Folder C
Subfolder 1
File C
Accepted Answer
More Answers (0)
Categories
Find more on File Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!