<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>16 Mar 2015 17:39:00 Z</lastBuildDate><pubDate>16 Mar 2015 16:25:00 Z</pubDate><description>Hi Guys&#13;
&#13;
OK, got a little issue with a service I've written that watches a folder for inbound text files and imports them into a database.&#13;
&#13;
I use fListFile to get a string from which I build an array of files to process&#13;
I use fOpen with foReadWrite + foReadLock + foWriteLock so that theoretically, no other program can access it while I'm reading the data.&#13;
&#13;
When the data is successfully processed, I fClose then use fDelete to temove it.&#13;
&#13;
This code has been running since about WD12&#13;
&#13;
I now have an issue where I am importing 2 copies of the file into the database.&#13;
&#13;
Adding some extra debug code with additional fListFile after processing, the file is initially correctly gone ( and fFileExist is false). However milliseconds later another fListFile finds it again!&#13;
&#13;
I have tried modifying the code to rename and delete the renamed file, which again reports success, but the file(s) still mysteriously appear.&#13;
&#13;
Anyone else have similar issues?&#13;
&#13;
I am about to try deleting via ExeRun or API and see what happens.&#13;
Also, I might put a pause in the looping, but would like to avoid this as performance is a factor.&#13;
&#13;
Cheers&#13;
&#13;
Malc</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50952-flistfile-fdelete-ffileexists-issue-wd18/read.awp</link><title>fListFile fDelete fFileExists issue WD18</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50952-flistfile-fdelete-ffileexists-issue-wd18-50957/read.awp</comments><pubDate>16 Mar 2015 17:39:00 Z</pubDate><description>OK, tried ExeRun and fFileExist to check deletion. Still re-appears.&#13;
&#13;
I'm guessing something has changed on the server re cach…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50952-flistfile-fdelete-ffileexists-issue-wd18-50957/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50952-flistfile-fdelete-ffileexists-issue-wd18-50957/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50952-flistfile-fdelete-ffileexists-issue-wd18/read.awp">fListFile fDelete fFileExists issue WD18</source><title>Re: fListFile fDelete fFileExists issue WD18</title></item><item><author>bruno.caires</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50952-flistfile-fdelete-ffileexists-issue-wd18-50956/read.awp</comments><pubDate>16 Mar 2015 17:14:02 Z</pubDate><description>Hi Malc,&#13;
&#13;
Try to consider some issues:&#13;
&#13;
 1) After executing fDelete, the operative system take some time to delete the file …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50952-flistfile-fdelete-ffileexists-issue-wd18-50956/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50952-flistfile-fdelete-ffileexists-issue-wd18-50956/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50952-flistfile-fdelete-ffileexists-issue-wd18/read.awp">fListFile fDelete fFileExists issue WD18</source><title>Re: fListFile fDelete fFileExists issue WD18</title></item></channel></rss>
