fileaction: update file naming (add an index).