首页 > 解决方案 > 获取每个 URL 目录

问题描述

我想在一个 url 中列出每个目录和子目录,类似于 Directory.GetFiles,但带有一个 url。例如,如果我有网站https://www.website.com/,列表可能看起来像

https://www.website.com/something
https://www.website.com/something/somethingElse
https://www.website.com/anotherthing/
https://www.website.com/thisthing/

有什么办法可以做到这一点吗?

标签: c#url

解决方案


推荐阅读