Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
查看 Delphi 新闻组,似乎从 WebDAV 服务器获取内容的最佳方法是使用内置的 TIdHTTP.Get。这样做时,结果是 HTML,我只想确保这是检索有关目录和文件的数据的最佳方式。如果是这样,那么我会将其解析出来,但我只是想确保没有一种更简洁的方法可以只为我提供文件/文件夹信息......不,到目前为止我不希望为此使用任何其他组件。
回答我自己的问题:我想我明白了——我做了一个带有 allprop 和深度为 1 的 PropFile。这似乎给了我当前“目录”中的所有内容,我可以深入了解它。除非有更好的方法(或者如果我没有正确使用 PropFind),我会认为这是关闭的。有帮助的参考资料: