Menu

#77 Backup file loses date + time

open
5
2003-07-20
2002-04-22
No

The backup file should be renamed rather than copied.
Now it loses its time stamp.
;JOOP!

Discussion

  • Chris Seguin

    Chris Seguin - 2002-09-11
    • labels: --> Refactorings
    • assigned_to: nobody --> seguin
    • status: open --> closed
     
  • Chris Seguin

    Chris Seguin - 2002-09-11

    Logged In: YES
    user_id=92756

    It seems that Java's File.renameTo operation changes the
    date time stamp. So I don't really have a way to create a file
    that doesn't change the date time stamp.

    Sorry.

     
  • Joop Lanting

    Joop Lanting - 2002-09-12

    Logged In: YES
    user_id=515781

    I do not agree, try this:

    File oldName = new File("something");
    File newName = new File("else");
    oldName.renameTo(newName);

    at least on W2000 the modification time of "something" does
    not change by the renaming to "else".
    ;JOOP!

     
  • Joop Lanting

    Joop Lanting - 2002-09-12
    • status: closed --> open
     
  • Mike Atkinson

    Mike Atkinson - 2003-07-20
    • assigned_to: seguin --> mikeatkinson
     

Log in to post a comment.