public FileSystemEntry(FileSystemEntryType type, string name, string path, int cardinality = 0) { Type = type; Name = name; Path = path; Cardinality = cardinality; }
/// <summary> /// Initializes a new instance of the <see cref="FileSystemEntry" /> class. /// </summary> /// <param name="path">The path of the entry.</param> /// <param name="name">The name of the entry.</param> /// <param name="entryType">The type of the entry.</param> /// <param name="creationTime">The time of creation.</param> /// <param name="lastAccessTime">The time of the last access.</param> /// <param name="lastModificationTime">The time of the last modification.</param> /// <param name="length">The length of the file.</param> public FileSystemEntry(String path, String name, FileSystemEntryType entryType, DateTime creationTime, DateTime lastAccessTime, DateTime lastModificationTime, Int64 length) { Path = path; Name = name; Type = entryType; CreationTime = creationTime; LastAccessTime = lastAccessTime; LastModificationTime = lastModificationTime; Length = length; }
/// <summary> /// Initializes a new instance of the <see cref="FileSystemEntry" /> class. /// </summary> /// <param name="path">The path of the entry.</param> /// <param name="name">The name of the entry.</param> /// <param name="entryType">The type of the entry.</param> /// <param name="creationTime">The time of creation.</param> /// <param name="lastAccessTime">The time of the last access.</param> /// <param name="lastModificationTime">The time of the last modification.</param> /// <param name="length">The length of the file.</param> /// <exception cref="System.ArgumentNullException"> /// The path is null. /// or /// The name is null. /// </exception> public FileSystemEntry(String path, String name, FileSystemEntryType entryType, DateTime creationTime, DateTime lastAccessTime, DateTime lastModificationTime, Int64 length) { this.Path = path ?? throw new ArgumentNullException(nameof(path)); this.Name = name ?? throw new ArgumentNullException(nameof(name)); this.Type = entryType; this.CreationTime = creationTime; this.LastAccessTime = lastAccessTime; this.LastModificationTime = lastModificationTime; this.Length = length; }
/// <summary> /// Initializes a new instance of the <see cref="HadoopBooleanOperationResult" /> class. /// </summary> /// <param name="request">The request of the operation.</param> /// <param name="path">The path of the entry.</param> /// <param name="name">The name of the entry.</param> /// <param name="entryType">The type of the entry.</param> /// <param name="accessTime">The time of the last access.</param> /// <param name="modificationTime">The time of the last modification.</param> /// <param name="length">The length of the file.</param> /// <param name="blockSize">The size of the block.</param> public HadoopFileStatusOperationResult(String request, String path, String name, FileSystemEntryType entryType, DateTime accessTime, DateTime modificationTime, Int64 length, Int64 blockSize) : base(request) { Path = path; Name = name; EntryType = entryType; AccessTime = accessTime; ModificationTime = modificationTime; Length = length; BlockSize = blockSize; }
/// <summary> /// Crea una nueva instancia de entrada de sistema /// de archivos. /// </summary> /// <param name="path">Ruta de la entrada del sistema /// de archivos.</param> /// <param name="type">Tipo de entrada.</param> public FileSystemEntry(string path, FileSystemEntryType type) { Path = path; Type = type; }
/// <summary> /// Initializes a new instance of the <see cref="FileSystemEntryInfo" /> class. /// </summary> /// <param name="name">The filename.</param> /// <param name="path">The file path.</param> /// <param name="type">The file type.</param> public FileSystemEntryInfo(string name, string path, FileSystemEntryType type) { Name = name; Path = path; Type = type; }