And once again - thank you for helping me out.
Could you make it work for folder.png as well? When I "expanded" it with an OR addition, I broke it.
SammaySarkar wrote:I was sure XY would have some much easier ways to do something like this.
I am glad YOU say this. It's exactly the reason I never tried to tackle it myself, always thinking I'll come across a feature/ switch/ command which does it all by itself, similar to "paste folder structure", much smarter than anything I'd ever come up with.
Anyway, your script handles it nicely, except for one little thing: It won't copy the folder.jpg of the first level, if this level contains subfolders. However, for the deeper levels it digs them out.
I copy Folder1 and Folder2. Upon pasting...
Code: Select all
Folder1 = OK (it has no subfolders)
Folder2 = no thumb
Folder2.1 = OK
Folder2.2 = OK
If however, I start one level higher, by copying Folder0, I get the missing thumb for Folder2 (but now Folder0 is missing his folder.jpg)
Code: Select all
Folder0 = no thumb
Folder1 = OK
Folder2 = OK
Folder2.1 = OK
Folder2.2 = OK