Thanks Martin
but i am using Kentico 7. and the answer you provided is checking against Media library i just want check if a folder exist in library. i will create library manually
there will be many other folders in my library but my custom web part will check if a folder named exactly as user department exist or not.
example: i have 2 departments legal and IT. i have created IT folder but not Legal. so when user loged in with department name "Legal" code should check if any folder exist with same name or not. if not then it should create one.
your help will be appreciated
thanks regards Toufique