package require base64
# This works for very basic operations (cd, open, file stat, but not 'glob').
+# It has been put together, so far, largely by trial and error!
namespace eval vfs::webdav {}
return $res
}
- ::vfs::log [list ::http::geturl $dirurl$name -headers $extraHeadersList]
set token [::http::geturl $dirurl$name -headers $extraHeadersList]
- ::vfs::log $token
upvar #0 $token state
+
if {![regexp " (OK|Moved Permanently)$" $state(http)]} {
::vfs::log "No good: $state(http)"
::http::cleanup $token