Simple script to create or update a file with an index of a directory. (index is stored in that directory)