Branch: Tag:

2018-04-03

2018-04-03 13:12:28 by Karl Gustav Sterneberg <kg@roxen.com>

Testsuite [WebDAV]: Working also directly against filesystem when preparing testdir.

486:    testdir = has_suffix(testdir, "/") ? testdir[..<1] : testdir;    report_debug("Webdav: Test dir is: %O\n", testdir);    -  // Consider working directly with the filesystem instead. -  // filesystem_recursive_rm(testdir); -  -  // webdav_mkcol may return true even it the dir already existed. Therefor -  // we always clean. -  webdav_request("DELETE", testdir); // In case it already exists... +  if (filesystem_check_exists(testdir)) { +  // In case it is not empty. +  filesystem_recursive_rm(testdir); +  }    webdav_request("MKCOL", testdir);    webdav_ls(testdir+"/", ({ testdir+"/" }));   }