1234567891011121314151617181920212223242526272829303132 |
- using System.Diagnostics;
- using System.IO;
- using Mtp2Dav.WebDAVSharp.Server._1d2086a502937936ebc6bfe19cfa15d855be1c31.Stores;
- namespace Mtp2Dav.MtpStore._1d2086a502937936ebc6bfe19cfa15d855be1c31
- {
- [DebuggerDisplay("File ({ItemPath})")]
- internal class WebDavMtpStoreDocument : WebDavMtpStoreItem, IWebDavStoreDocument
- {
- public WebDavMtpStoreDocument(WebDavMtpStore store, string path) : base(store, path)
- {
- }
- public override bool IsCollection => false;
- public long Size => (long)(FileInfo?.Length ?? 0);
- //----------------
- public string MimeType { get; }
- public string Etag { get; }
- public Stream OpenReadStream()
- {
- return Store.OpenReadStream(ItemPath);
- }
- public Stream OpenWriteStream(bool append)
- {
- throw new System.NotImplementedException();
- }
- }
- }
|