in reply to Changing file modification timestamp

In addition to "utime", there's also the unix command-line utility "touch". If you use "touch", with no other arguments, it changes the timestamp on a file to the current time.

  • Comment on Re: Changing file modification timestamp

Replies are listed 'Best First'.
Re^2: Changing file modification timestamp
by halley (Prior) on Jun 04, 2007 at 19:07 UTC
    In particular, touch and utime match if the file already exists. The touch command is basically equivalent to:
    if utime() fails, if create() succeeds, close() it (zero bytes written) else, give an error message

    --
    [ e d @ h a l l e y . c c ]