WebDavMtpStoreCollection.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System.Collections.Generic;
  2. using System.Diagnostics;
  3. using System.Linq;
  4. using Mtp2Dav.WebDAVSharp.Server._1d2086a502937936ebc6bfe19cfa15d855be1c31.Stores;
  5. namespace Mtp2Dav.MtpStore._1d2086a502937936ebc6bfe19cfa15d855be1c31
  6. {
  7. [DebuggerDisplay("Directory ({ItemPath})")]
  8. internal class WebDavMtpStoreCollection : WebDavMtpStoreItem, IWebDavStoreCollection
  9. {
  10. public WebDavMtpStoreCollection(WebDavMtpStore store, string path) : base(store, path)
  11. {
  12. }
  13. public IEnumerable<IWebDavStoreItem> Items => Store.GetEntries(ItemPath);
  14. public IWebDavStoreItem GetItemByName(string name)
  15. {
  16. return Items.FirstOrDefault(p => p.Name == name);
  17. }
  18. public override bool IsCollection => true;
  19. // --------------------
  20. public IWebDavStoreCollection CreateCollection(string name)
  21. {
  22. throw new System.NotImplementedException();
  23. }
  24. public void Delete(IWebDavStoreItem item)
  25. {
  26. throw new System.NotImplementedException();
  27. }
  28. public IWebDavStoreDocument CreateDocument(string name)
  29. {
  30. throw new System.NotImplementedException();
  31. }
  32. public IWebDavStoreItem CopyItemHere(IWebDavStoreItem source, string destinationName, bool includeContent)
  33. {
  34. throw new System.NotImplementedException();
  35. }
  36. public IWebDavStoreItem MoveItemHere(IWebDavStoreItem source, string destinationName)
  37. {
  38. throw new System.NotImplementedException();
  39. }
  40. }
  41. }