gpt4 book ai didi

c# - 在 .net 中通过 https/http 获取 FileAttributes

转载 作者:太空宇宙 更新时间:2023-11-03 13:51:07 25 4
gpt4 key购买 nike

System.IO.File.GetAttributes 方法仅对本地系统上的文件有效。在我的应用程序中,我试图通过 https://访问文件属性。如果有任何这样的类/方法(在 .net 中),请让我知道,以通过 http(s) 获取文件属性。

另外,如果有任何这样的 Windows CommandPrompt 命令可以实现相同的功能,那就太好了。请告诉我。

谢谢。

最佳答案

你不能。这将严重违反安全规定。

但是,您可以编写一个返回您感兴趣的属性的 WCF 服务。

或者您可能有兴趣设置一个 WebDAV分享。

关于c# - 在 .net 中通过 https/http 获取 FileAttributes,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13666172/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com