Re: ADDFILES and upload date
By: Digital Man to Deepthaw on Sat Jul 08 2017 01:00 pm
Interesting. I don't really have an explanation for that one. What is the upload date/time for that file (that's the date that is compared)?
When I just ran it, the file in question (dokuauth.zip) had an upload timestamp of 07/08/17, 2:22PM. After rerunning ADDFILES, it was marked as new and as having an upload timestamp of 07/08/17, 4:45PM.
So I edited my batch file, and told it to delete dokuauth.zip before running ADDFILES. Now the new first file in the directory, sbbs313a.zip is marked as being new despite wget not updating it in any way. So I edited the script to delete *that* file before running ADDFILES, and now sbbs314a.zip is the one marked as new every time I run it.
It seems to be working fine for every file except the very first one in the directory.
Windows Server 2003 R2, 32-bit. Here's the contents of the batch file:
D:
CD \BBS
c:\utils\wget --tries=5 --append-output=C:\SBBS\mirror.log --ftp-user=anonymous --ftp-password=
deepthaw@deepspace94.com -N -r -l inf
ftp://ftp.synchro.net
del D:\BBS\ftp.synchro.net\files.bbs
del D:\BBS\ftp.synchro.net\file_id.diz
c:\sbbs\exec\addfiles MAINSBBS -p -z -s -f
The wget log I'm saving indicates it is working as expected: it downloads FILE_ID.DIZ and FILES.BBS every time (because I keep deleting them) but skips everything else that is unchanged vs what I have on disk.
Every time ADDFILES completes, whatever is the first result of a directory listing gets an upload date of when the batch was ran, but everything else works as expected (only the nightly builds got their upload date changed, which was the intended behavior.)
---
þ Synchronet þ Deep Space '94 - deepspace94.com - The Best 1994 Had to Offer