在ITHit Webdav中访问远程文件存储的最佳方法是什么 [英] What is the best way to access remote filestore in ITHit webdav

查看:250
本文介绍了在ITHit Webdav中访问远程文件存储的最佳方法是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用用于.net的ITHit WebDAV引擎来实现WebDAV服务器.该服务器是作为Windows服务运行的httplistener,因此在服务计算机上使用映射的驱动器"会引起问题,因为似乎服务无法看到映射的驱动器.

I am in the middle of implementing a WebDAV server using the ITHit WebDAV engine for .net. The server is a httplistener running as a windows service so using Mapped drive on the service machine is causing problems as it seems services cannot see mapped drive.

我在使用UNC路径方面取得了一些成功,但是GetExtendedFileAttrjbutes似乎与UNC路径不兼容(我也没有真正使用它们,但想知道还有什么不起作用).

I have had some success with using UNC path but the GetExtendedFileAttrjbutes don't seem to work with UNC path ( I am not really using them either but wondering what else might not work).

问题是,实现需要作为服务运行并访问远程文件存储文件夹的服务器的最佳方法是什么?

So the question is, what is the best way of implementing the server which needs to run as a service and access a remote filestore folder?

有什么建议吗?

问候 艾玛(Amar)

Regards Amar

推荐答案

当前 WebDAV服务器示例 IT Hit随.NET提供的文件系统后端不支持网络路径.您只能使用本地路径.问题在于存储锁,这些锁保存在扩展属性或NTFS备用数据流中-在网络路径的情况下(至少在Windows上不支持).

Currently WebDAV server samples with file system back-end provided with IT Hit WebDAV Server Engine for .NET do not support network path. You can use only local path with it. The problem is in storing locks, that are saved in extended attributes or NTFS Alternative Data Streams - they are not supported in case of a network path (at least on Windows).

要保持锁状态,您将需要一些其他存储,例如数据库,一些额外的文件或任何其他存储.您将重新编程 IFileAsync 接口(在 DavFile.cs

To keep locks you will need some other storage, such as database, some extra files or any other storage. You will reprogram IFileAsync interface (implemented in DavFile.cs and ExtendedAttributes in file system samples).

我们尝试使示例代码尽可能简单,这就是为什么我们不支持网络路径,这会使示例代码更加复杂.我们将继续研究如何在示例中实现简单可行的实现,以在将来的更新中提供此类实现.

We try to keep our sample code as simple as possible, that is why we do not support network path, this will make our sample code more complex. We continue to investigate how we can make a simple and viable implementation in our samples to provide such implementation in future updates.

这篇关于在ITHit Webdav中访问远程文件存储的最佳方法是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆