S
SimonH
Hi all,
I'm making a diskspace analyser such that after you select the directory
that you want analysed and hit go, it iterates through all the directories
and files and gather information on them. I'd like to be able to offer lots
of different types of information to the user, including comparitive sizes
of different file types, file type counts, top ten largest directories, empty
files and much more besides.
I'm wondering if anyone could suggest a solution to two different aspects
of this
1. What data structure should I use. This doesnt have to be restricted to
those that come with the .net framework, but whatever is used needs to be
efficient and fast at accessing the information gathered on the different
directories
2. What should I use to gather the statistics that I'll need to be able to
analyse the directories and files. I'm basically thinking that I will need
to make a custom object but I'm worried that this could get really complicated.
Perhaps I would make a directory info object that would contain information
on itself and the directories contained underneath it?
I'm pretty confused about how to gather these statistics and how to analyse
them efficiently
Any advice or design approaches would be very greatfully received
Thank all
Simon
I'm making a diskspace analyser such that after you select the directory
that you want analysed and hit go, it iterates through all the directories
and files and gather information on them. I'd like to be able to offer lots
of different types of information to the user, including comparitive sizes
of different file types, file type counts, top ten largest directories, empty
files and much more besides.
I'm wondering if anyone could suggest a solution to two different aspects
of this
1. What data structure should I use. This doesnt have to be restricted to
those that come with the .net framework, but whatever is used needs to be
efficient and fast at accessing the information gathered on the different
directories
2. What should I use to gather the statistics that I'll need to be able to
analyse the directories and files. I'm basically thinking that I will need
to make a custom object but I'm worried that this could get really complicated.
Perhaps I would make a directory info object that would contain information
on itself and the directories contained underneath it?
I'm pretty confused about how to gather these statistics and how to analyse
them efficiently
Any advice or design approaches would be very greatfully received
Thank all
Simon