Your best friend for file transfer.Fetch
Mirror modification dates or replace folder on upload (3 posts)
- Started 7 years ago by flottman
- Latest reply 7 years ago from Jim Matthews
First off, thank you for Fetch. I've been using it since back in my days at Dartmouth, and was the first place I went when my wife started her business and I got into the web publishing game.
Anyway, can you verify something for me? I use iWeb to publish our site to .Mac, then Fetch to move it from there to our web host. My thought was to use mirror, but it seems that the modification date for the files on our web host are always set to the date and time that the file was copied over, so everything appears to be changed the next time the mirror runs, and it ends up uploading the entire site.
Am I correct in thinking that the modification date and time are what are used in order to determine what needs to be moved? And if so, is this normal for the modification date to be whenever the file was copied, or is this something peculiar to my web host?
Alternately, if mirror isn't going to work, is there a way to override Fetch's behavior to update folder contents rather than replace the entire folder? I guess I'm looking for a combination of Put along with mirror's ability to delete stray items at destination.
You know what? I just ran a mirror to test, and looking in the transcript, I see that I am, in fact, an idiot. Of course the remote files will be newer, and of course, that means that it doesn't need to upload the older, local file. I was thinking that it had to have exact matches, not newer files. Sheesh.
But as to the last part of my question, is there a way to override the folder behavior of Put so that it in fact deletes stray items just like mirror does rather than just update the changed files? Sometimes for updates that need to go up right away, it's easier to manually drag the modified folders over rather than waiting for Fetch to go through all of them and check the dates for the mirror.
Not really a huge deal now that I figured out mirror, but I need to ome up with some redeeming question for this thread... :-)
Jim Matthews Administrator
No, there's no way currently to have Put replace an existing folder rather than merging with it. I would recommend deleting the existing folder and then uploading the new folder with Put.
- Page 1