My Dear Techies,
I have a GetFiles() method in my windows application. In this method when am sending directory path it is reading all files in that directory it is working fine.
Here my question is if i have 100 or 1000 files in that folder (i.e collection of txt,jpg,tiff ...files in a directory) i didnt find any performance problem. But in real time if my directory contains 1lakh or more file i found that my process very slow how can we tackle this issue.
I have used threads , multitasking so on.
Here my requirement is i have to copy the files collectively (i.e combination of tiff jpg,text,pdf...so on)
plz help me out
How to write getfiles() method to fetch only few (100 or 1000... ) files from a directory .
Please provide the solution ........:)
Loading
Javeed M ShaikhPosted Apr 2, 2013, 4:37 PM
Below are 2 good articles which tries to solve the same problem you are having, go through them:
http://www.codeproject.com/Articles/38959/A-Faster-Directory-Enumerator
http://codebetter.com/matthewpodwysocki/2008/10/16/functional-net-fighting-friction-in-the-bcl-with-directory-getfiles/