/// <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) { }
/// <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) { }
private static bool IsDirectory(KuduPath path) { return(path?.href.EndsWith("/") == true); }
private static bool IsFile(KuduPath path) { return(path?.href.EndsWith("/") == false); }
private static IKuduFilePath ToFile(KuduPath path) { return(new KuduFilePath(path)); }
private static IKuduDirectoryPath ToDirectory(KuduPath path) { return(new KuduDirectoryPath(path)); }