#1 2017-08-24 16:01

NexusFred
Member
Registered: 2017-08-24
Posts: 9

Serialize files in multiple subfolders in descending order

Hello,

I try to use the serialize option but in descending order.

Folder
	SubFolder_01
		  Or. Name   > New Name
		File_A_0001 > File_A_0005
		File_A_0002 > File_A_0004
		File_A_0003 > File_A_0003
		File_A_0004 > File_A_0002
		File_A_0005 > File_A_0001
		
	SubFolder_02
		  Or. Name   > New Name
		File_A_0001 > File_A_0005
		File_A_0002 > File_A_0004
		File_A_0003 > File_A_0003
		File_A_0004 > File_A_0002
		File_A_0005 > File_A_0001
		
	SubFolder_03
		  Or. Name   > New Name
		File_A_0001 > File_A_0005
		File_A_0002 > File_A_0004
		File_A_0003 > File_A_0003
		File_A_0004 > File_A_0002
		File_A_0005 > File_A_0001

In the lite version I do not find a Ascending Descending Order option.
The name column do not respect the subfolder structure.

Thanks
Best Regards
NexusFred

Offline

#2 2017-08-24 16:17

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,367

Re: Serialize files in multiple subfolders in descending order

Hello,

To serialize in descending order, you simply specify a negative Step parameter, for example "-1". However, if you have different number of files per subfolder then you can't start at a fixed initial value.

Instead, why don't you sort in inverse order by Path column and then serialize in the usual ascending order with automatic resetting of the serialization index if folder changes, like shown below.

Note that I have prefixed new names with "_" to avoid conflicting new names. You can remove it in a second pass.

Serialize-in-descending-order-per-folder.png

Offline

#3 2017-08-24 19:04

NexusFred
Member
Registered: 2017-08-24
Posts: 9

Re: Serialize files in multiple subfolders in descending order

Thanks !!

A  negative Step parameter do not work, the result is

File_A_0001 > File_A_-0001

But order by Path column work well. big_smile

Thanks a lot.

Offline

#4 2017-08-24 22:14

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,367

Re: Serialize files in multiple subfolders in descending order

NexusFred wrote:

A  negative Step parameter do not work

For a negative step to work as you expect, you need to change the "Index starts" option to a higher number, for example "5" if you have exactly 5 files in a folder. So it would go from 5 down to 1 in steps of -1. But this would be useful only if you have a fixed number of files in each subfolder. Otherwise the reverse sorting by Path column would work best.

Offline

Board footer

Powered by FluxBB