Creates a file index.