You can always ask for a directory listing (propfind) of the parent directory and see if the directory already exists, for 1 directory this is overhead but for more directories and if you can reduce the number of MKCOL calls then it's a good optimalization.
Dirk "Kumar, Ashok" wrote: > > Hi Dirk > > I am dynamically creating the collections(directory structure) and put > in the documents. Also I need to check if a directory exists or not and > based on the creat the directory if needed. For that I am at present > using the makecollection method for the directory and and check for 405 > which means the collection already exists. Is there a better and > optimised way of checking if a directory exists or not like check some > property --- > Please do throw some light on this > > Ashok -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
