コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KuduFilePath"/> class.
 /// </summary>
 /// <param name="path">The path.</param>
 internal KuduFilePath(KuduPath path)
     : this(
         path.Name,
         path.Size,
         path.Modified,
         path.Created,
         path.Mime,
         path.path)
 {
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KuduDirectoryPath"/> class.
 /// </summary>
 /// <param name="path">The path.</param>
 internal KuduDirectoryPath(KuduPath path)
     : this(
         path.Name,
         path.Size,
         path.Modified,
         path.Created,
         path.Mime,
         path.path)
 {
 }
コード例 #3
0
 private static bool IsDirectory(KuduPath path)
 {
     return(path?.href.EndsWith("/") == true);
 }
コード例 #4
0
 private static bool IsFile(KuduPath path)
 {
     return(path?.href.EndsWith("/") == false);
 }
コード例 #5
0
 private static IKuduFilePath ToFile(KuduPath path)
 {
     return(new KuduFilePath(path));
 }
コード例 #6
0
 private static IKuduDirectoryPath ToDirectory(KuduPath path)
 {
     return(new KuduDirectoryPath(path));
 }