IFtpListItem.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. namespace System.Net.FtpClient
  2. {
  3. /// <summary>
  4. /// Represents a file system object on the server
  5. /// </summary>
  6. /// <example><code source="..\Examples\CustomParser.cs" lang="cs" /></example>
  7. public interface IFtpListItem
  8. {
  9. /// <summary>
  10. /// Gets the type of file system object. This property can be
  11. /// set however this functionality is intended to be done by
  12. /// custom parsers.
  13. /// </summary>
  14. FtpFileSystemObjectType Type { get; set; }
  15. /// <summary>
  16. /// Gets the full path name to the object. This property can be
  17. /// set however this functionality is intended to be done by
  18. /// custom parsers.
  19. /// </summary>
  20. string FullName { get; set; }
  21. /// <summary>
  22. /// Gets the name of the object. This property can be
  23. /// set however this functionality is intended to be done by
  24. /// custom parsers.
  25. /// </summary>
  26. string Name { get; set; }
  27. /// <summary>
  28. /// Gets the target a symbolic link points to. This property can be
  29. /// set however this functionality is intended to be done by
  30. /// custom parsers.
  31. /// </summary>
  32. string LinkTarget { get; set; }
  33. /// <summary>
  34. /// Gets the object the LinkTarget points to. This property is null unless pass the
  35. /// FtpListOption.DerefLink flag in which case GetListing() will try to resolve
  36. /// the target itself.
  37. /// </summary>
  38. FtpListItem LinkObject { get; set; }
  39. /// <summary>
  40. /// Gets the last write time of the object. This property can be
  41. /// set however this functionality is intended to be done by
  42. /// custom parsers.
  43. /// </summary>
  44. DateTime Modified { get; set; }
  45. /// <summary>
  46. /// Gets the created date of the object. This property can be
  47. /// set however this functionality is intended to be done by
  48. /// custom parsers.
  49. /// </summary>
  50. DateTime Created { get; set; }
  51. /// <summary>
  52. /// Gets the size of the object. This property can be
  53. /// set however this functionality is intended to be done by
  54. /// custom parsers.
  55. /// </summary>
  56. long Size { get; set; }
  57. /// <summary>
  58. /// Gets special UNIX permissions such as Stiky, SUID and SGID. This property can be
  59. /// set however this functionality is intended to be done by
  60. /// custom parsers.
  61. /// </summary>
  62. FtpSpecialPermissions SpecialPermissions { get; set; }
  63. /// <summary>
  64. /// Gets the owner permissions. This property can be
  65. /// set however this functionality is intended to be done by
  66. /// custom parsers.
  67. /// </summary>
  68. FtpPermission OwnerPermissions { get; set; }
  69. /// <summary>
  70. /// Gets the group permissions. This property can be
  71. /// set however this functionality is intended to be done by
  72. /// custom parsers.
  73. /// </summary>
  74. FtpPermission GroupPermissions { get; set; }
  75. /// <summary>
  76. /// Gets the others permissions. This property can be
  77. /// set however this functionality is intended to be done by
  78. /// custom parsers.
  79. /// </summary>
  80. FtpPermission OthersPermissions { get; set; }
  81. /// <summary>
  82. /// Gets the input string that was parsed to generate the
  83. /// values in this object. This property can be
  84. /// set however this functionality is intended to be done by
  85. /// custom parsers.
  86. /// </summary>
  87. string Input { get; }
  88. /// <summary>
  89. /// Returns a string representation of this object and its properties
  90. /// </summary>
  91. /// <returns>A string value</returns>
  92. string ToString();
  93. }
  94. }