Click here to Skip to main content
15,900,258 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
A file is copy from temp folder and stored in final folder. there is cheking for fil existence and it return file exist. some times it happens that file is not stored in final folder but cheking gives file exist. what is the actual problem? Plz reply
Posted
Comments
Vedat Ozan Oner 13-Feb-14 2:57am    
very hard to say with such a little info
ZurdoDev 13-Feb-14 8:56am    
I give up. What is the problem?

1 solution

The best guess based on the cryptic information provided.

The File.Exists Method will show a file as present even if it is a temporary file or only in the process of being copied. The file may not finish copying or otherwise quickly cease to exist.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900