Auto create index.txt and serial.