takeDirectory "foo" is ".", and that will confuse webdav, so only use that code path when there is a subdirectory.  | 
			||
|---|---|---|
| .. | ||
| DavLocation.hs | ||
				takeDirectory "foo" is ".", and that will confuse webdav, so only use that code path when there is a subdirectory.  | 
			||
|---|---|---|
| .. | ||
| DavLocation.hs | ||