Re: how to delete a file?
Are you sure that they are empty and not placeholders for files that your application still is trying to fetch?
Re: how to delete a file?
I do not know. The program is definitely trying to fill them, since they are open. Since the http->get() in those cases failed they are not closed and I can not delete them. Is there anything I can do?
Regards,
Luka
Re: how to delete a file?
R u downloading one file at a time? If so, before start downloading next file, check the previous download whether its failed or timeout, then close your file... Then will start download the next one...
Thanks,
Mani
Re: how to delete a file?
It should download only one file at the time but the request for new file are sent after the header is received, therefore it is possible to download several files at the same time... If the file is received successfully then the file is closed, but if it fails it stays open... I was hoping there is some way to close or abort writing to it in some way. If somebody has an idea that would be great! Otherwise thanks to all that replied!
Regards,
Luka