Pregunta

I have a little script to create a directory listing

You can use it like

./createDiectoryListing.sh SOME_DIRECTORY

It will create a index.html show the list of the file, Here is an example

But i found sometime the file's date modified attribute changed to the time i ran the script.

In my script, i just use md5sum to caculate the hash of the file, I never change the content.

It's really annoying, all the file has the same modified date,after i ran the script

I don't know why, anyone can help me out thanks.

¿Fue útil?

Solución

Okay. I figured it out. the reason is i use git to manage the file. when switch between branches, the date attribute is changed.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top