Re: Why did this copyfile stop working?

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 55896
interpreted = N
texte = >Why would my copyfile stop working? The waitforfile context does not wait until the new file has been written completely, it only waits until it 'sees' the new file -- and it can 'see' the new file before it has been completely written to disk. Therefore, if it is seeing the new file before it has been completely written to disk, the original file will be deleted prematurely -- before it has been copied to the new location. Then the OS may be deleting the partially-written the new file because it could not finish the copying the 'missing' original. If this is the problem, you *should* be able to fix it by writing a blank file AFTER copying the cart file to the new location. Webdna will not write the blank file until after the original file has been copied to the new location. Then your waitforfile context should wait for the blank file to be written before deleting the original. This should insure that the original file was copied completely to the new location before it gets deleted. >There must have been a reason I didn't use [movefile] a year ago, but when I >try it now, it also doesn't work (which may have been the reason). Movefile has never worked properly from my personal experience. You seem to have adopted the same work-around technique I've been using for years. Don't even bother with movefile, it has never been fixed in all these years so it will probably never be fixed ... -- Kenneth Grome WebDNA Programmer Outsource Service Provider ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Why did this copyfile stop working? ( Kenneth Grome 2004)
  2. Re: Why did this copyfile stop working? ( Rob Marquardt 2004)
  3. Re: Why did this copyfile stop working? ( Dave Hurley 2004)
  4. Re: Why did this copyfile stop working? ( Rob Marquardt 2004)
  5. Re: Why did this copyfile stop working? ( Rob Marquardt 2004)
  6. Re: Why did this copyfile stop working? ( Kenneth Grome 2004)
  7. Re: Why did this copyfile stop working? ( Rob Marquardt 2004)
  8. Re: Why did this copyfile stop working? ( Scott Anderson 2004)
  9. Why did this copyfile stop working? ( Rob Marquardt 2004)
>Why would my copyfile stop working? The waitforfile context does not wait until the new file has been written completely, it only waits until it 'sees' the new file -- and it can 'see' the new file before it has been completely written to disk. Therefore, if it is seeing the new file before it has been completely written to disk, the original file will be deleted prematurely -- before it has been copied to the new location. Then the OS may be deleting the partially-written the new file because it could not finish the copying the 'missing' original. If this is the problem, you *should* be able to fix it by writing a blank file AFTER copying the cart file to the new location. Webdna will not write the blank file until after the original file has been copied to the new location. Then your waitforfile context should wait for the blank file to be written before deleting the original. This should insure that the original file was copied completely to the new location before it gets deleted. >There must have been a reason I didn't use [movefile] a year ago, but when I >try it now, it also doesn't work (which may have been the reason). Movefile has never worked properly from my personal experience. You seem to have adopted the same work-around technique I've been using for years. Don't even bother with movefile, it has never been fixed in all these years so it will probably never be fixed ... -- Kenneth Grome WebDNA Programmer Outsource Service Provider ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Kenneth Grome

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Hello??? (1997) WebCat Documentation (was [platform] tag?) (1998) emailer and bad addresses (1997) WebCat2 - Getting to the browser's username/password data (1997) Tea Room trouble (1997) Need relative path explanation (1997) tab deliminated txt file (2001) Reversing [ipaddress] normalization (1998) Setting up WebCatalog with Retail Pro data (1996) Cool new site (1996) PSC recommends what date format yr 2000??? (1997) any suggestions for creating a multi-lingual site? (1999) Resume Catalog ? (1997) [Lookup] on secure page not returning anything (2000) Date problems-more (1997) Me know logical no need (2002) [WebDNA] eCommerce System Release (2018) [WebDNA] Chatroom with Webcatalog (2011) [WebDNA] Simple Date Format Conversion (2008) Need Photo Placement Suggestions (2002)