🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.nativeapi
Article #114

Re: How to know if files was changed

#114
From: Bryan Ashby
Date: Tue, 20 Jan 2004 15:59
35 lines
1842 bytes
Bruno,

Depends on how accurate you want to get here. The archive bit isn't really
reliable. I suggest one of these methods:

Semi : Check size + date/time stamp changes
Very: Check against MD5 or similar hash

Bryan

"Bruno Lovatti" <blovatti(remove this)@terra.com.br> wrote in message
news:400d4c35$3@newsgroups.borland.com...
> Hello,
>
> i need to send files through a tcp or ftp connection, no problem.
>
> but i have a lot of files in the source folder, so i'd like to send only
the
> files changed since the last send.
>
> i know how to this using the date+time of the file and keeping a database
to
> compare the dates the next time.
>
> but i think it's possible by removing the archive bit from the file and
> checking it in the next time.
> is it possible?
> is it secure? windows or another program will always set this archive bit
> when change the file?
>
> thanks!
>
> Bruno
>
>
Technical Details
Message-ID: <400d5051$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <400d4c35$3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f94dd,a5a9c9fc3a1e4771
X-Google-Attributes: gidf94dd,public
X-Google-ArrivalTime: 2004-01-20 08:10:31 PST
From: "Bryan Ashby" <bryanashby@hotNOSPAM.PLEASEmail.com>
Newsgroups: borland.public.delphi.nativeapi
References: <400d4c35$3@newsgroups.borland.com>
Subject: Re: How to know if files was changed
Date: Tue, 20 Jan 2004 08:59:13 -0700
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 64.90.206.254
Message-ID: <400d5051$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1074614353 64.90.206.254 (20 Jan 2004 07:59:13 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail