I have some self written backup software and I have just added support for copying links. This works very well and both the link and the file it points to are now copied to the destination directory and the new link points to the new file correctly. I had to add this support to get my SDK to function on my new Amiga as there are lots of soft links in the SDK!
Just one problem. When my backup software copies a file it then sets the time, date and attributes of the newly copied target file to be the same as the source file. But when I try to set the time and date on the link I have created, the IDOS->SetDate() function resolves the link and sets the time and date on the *target* file. Of course in 99.5% of situations this is what you want, but in this case I want to set the date and time on the *link* and not the target.
This means that my backup software always thinks the link has changed and copies it again. You can see here that using the "list" command it shows that the link itself has its own date and time attributes:
Code: Select all
$List Ram:C/Perl#?
Directory "Ram:C" on Wednesday 02-Dec-15
perl5.8.5 2130268 ----rwed 03-Nov-13 15:22:22
perl 2130268 ----rwed Today 07:30:29
> Ram:C/perl5.8.5