I'm assuming that because your location is Delaware you have a working knowledge of English. Please take the time to post a clear question or you won't get an answer that is useful. If you can't take the time to do that then we can't be expected to take the time to answer.
The Directory class in the System.IO namespace, should give you what you need. The problem is directories do not have sizes, it is the files stored in them that have sizes. However, it will enable you to bring back the sub directories and files i.e. if the folder has no sub directories and no files it is empty.
Show us that you have made a serious effort (don't expect us to do the work for you).
The effort you get back will be proportional to the effort you put in.
I make allowances for posts made by people for whom English is not their first language but when I see a statment posted from Delaware which reads
how to Find emtpy foldder file and zero siz file and del thm.
when by taking a few extra moments you could have posted
I want to delete all zero length files and empty folders from a directory tree
I'm generally not motivated to provide an answer. I've said this before, the most important language you should learn as a programmer is English because your ability to communicate clearly and effectively is going to play a very large part in determining your success. This applies no matter what field you are in. Clearly this point bears repeating based on your other recent posts.
I'd just also like to back Reverend Jim Up here - especially as I've just noticed you quoted back to him and put the word rasict underneath.
I'll assume you mean racist.
I would like to know how pulling you up on lazy typing and bad spelling is racist? At no point was the colour of your skin, your ethnicity or nationality mentioned what was pointed out was that as you were in a part of the USA which is a predominately English speaking (note I use the word predominately,) environment that you may take the time and effort to check what you are posting up and ensure it is readible.
I have been a member of this forum for a number of years and have always found the Reverend Jim to be a helpful, knowledgable person and have seen no evidence of any racism in anyway from him.
If you suffer from dyslexia or some other impediment to your typing / writing skills then fair enough, you can just say that but to attack someone who you don't know and who donates their time and expertise to moderate this forum for FREE because they pointed out you were sloppy is just unprofessional.
Reverend Jim and G_Waddell if you people cant understand question or answer , move along and dont bother to reply to post.
if you both cant understand dont bother to reply
When answering a question please: < for the above to mention dont know who?
Read the question carefully.
Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
Let's work to help programmer, not make them feel stupid for comin on your site and asking question , and get reply from people who cant answer but will only try to type some crap on thread.
G_Waddell u can kiss his ass or whatever ,dont bother to reply to this post again.
At no point was the colour of your skin, your ethnicity or nationality mentioned what was pointed out was that as you were in a part of the USA which is a predominately English speaking
are you really that dumb or you were born that way.
anway there is no button to stop people like you from posting on any thread .
so better use something that you dont have commonsense(note I use the word dumb , if that rang any bell dont bother to post here again. )
try and practise your ass licking skill on some other thread.
Irony is your quoting a line of text that says "Insults are not welcome" and then you insult me...
"At no point was the colour of your skin, your ethnicity or nationality mentioned what was pointed out was that as you were in a part of the USA which is a predominately English speaking" "are you really that dumb or you were born that way." Please oh font of wisdom, enlighten me as to what part of that statement was dumb?
The fact of the matter is my 6 year old son has better writing skills than you!