File names and extensions are not specific, possibly other file names and extensions
Original file name Desired effect
AGEM-12.TAP 01-AGEM-12.TAP
DRSG-4_3.TAP 02-DRSG-4_3.TAP
EM-12.TAP 03-EM-12.TAP
Detect the first 3 characters of file names in the folder
1. If there is no sequence number before all file names, then sort by modification time
2. If there is already a sequence number, do not add a sequence number again, and add a sequence number before the file name without a sequence number according to time (PS: if there is already 03-, then start from 04-)
There are quite a few requirements, please help, master!~~~~~~~
Original file name Desired effect
AGEM-12.TAP 01-AGEM-12.TAP
DRSG-4_3.TAP 02-DRSG-4_3.TAP
EM-12.TAP 03-EM-12.TAP
Detect the first 3 characters of file names in the folder
1. If there is no sequence number before all file names, then sort by modification time
2. If there is already a sequence number, do not add a sequence number again, and add a sequence number before the file name without a sequence number according to time (PS: if there is already 03-, then start from 04-)
There are quite a few requirements, please help, master!~~~~~~~
