Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

mrstone

?? exit => exist!!

You mean exist directory

isn't it?
martin

Re: how can I make sure whether the directory is exit or not

xxkwanglei wrote:

thanks
the example shows whether a file in the directory or not, my question is how can I make sure whether the directory is exit or not,if the directory is not exit ,I have to create it before put files in the directory.

I'm not sure if understand your problem. Anyway, note the the method works for directories too.
xxkwanglei

Re: how can I make sure whether the directory is exit or not

thanks
the example shows whether a file in the directory or not, my question is how can I make sure whether the directory is exit or not,if the directory is not exit ,I have to create it before put files in the directory.
xxkwanglei

how can I make sure whether the directory is exit or not

in .NET C#
before using seesion.CreatDirectory("PATH") to create directory,I want to make sure whether the directory is exit or not?
how can I do?