Directory dates when copying with XAD
Posted: Tue Jan 26, 2021 5:24 pm
If I unpack an archive with XAD and CopyFile(), all directories inside the archive will get an arbitrary date on them (04-Nov-02 10:30:00). Even if I define a non-existent path as the destination directory, the newly created dir gets this wrong date. They should get the current date or if real directory dates are stored in the archive, use those. Tested under MorphOS.
Here is everything needed for testing (.hws and test archive).
Code: Select all
@REQUIRE "xad", {InstallAdapter = True}
; Why directories get a date of 04-Nov-02 10:30:00? Why not the date stored in the archive (if available) or the current date?
; Even the automatically created "unpack" dir, which isn't in the archive itself, gets the 2002 date.
CopyFile("test.lha", "ram:unpack")
NPrint("Check the date of ram:unpack/testdir. It's something from 2002,\nwhich is incorrect. Click LMB.")
WaitLeftMouse