fixed: For Webdav set the PROPFIND custom request header else we may return false...
authorarnova <arnova@void.org>
Mon, 28 Jan 2013 18:45:10 +0000 (19:45 +0100)
committerarnova <arnova@void.org>
Mon, 28 Jan 2013 19:03:49 +0000 (20:03 +0100)
xbmc/filesystem/DAVDirectory.cpp

index db3fd44..f53c0fa 100644 (file)
@@ -250,6 +250,12 @@ bool CDAVDirectory::GetDirectory(const CStdString& strPath, CFileItemList &items
 bool CDAVDirectory::Exists(const char* strPath)
 {
   CCurlFile dav;
+
+  // Set the PROPFIND custom request else we may not find folders, depending
+  // on the server's configuration
+  CStdString strRequest = "PROPFIND";
+  dav.SetCustomRequest(strRequest);
+
   CURL url(strPath);
   return dav.Exists(url);
 }