CreateDirectoryTreeInJava

Purpose:

Solve the problem of heavily nested paths when using MKCOL to create a directory structure with WebDAV.

i.e. store a file under /COMPANYA/2006/08/test.file requires multiple MKCOL commands as Slide needs the parent tree to exist before creating children.

Below is a java method that takes a jakarta WebdavResource and the path (such as "/COMPANYA/2006/08/") and creates the entire tree structure.

last edited 2006-08-09 14:58:45 by DarrenHartford