public FileNodeIndexes(FileItemBase fileItem, INtfsNode ntfsNode) { FileItem = fileItem; NodeIndex = ntfsNode.NodeIndex; ParentNodeIndex = ntfsNode.ParentNodeIndex; FullName = PathUtils.TrimSeparatorDotEnd(ntfsNode.FullName); }
/// <summary>Constructs the <see cref="WindowsScanFileInfo"/> from a <see cref="INtfsNode"/>.</summary> internal WindowsScanFileInfo(INtfsNode node) { Name = node.Name; FullName = node.FullName; Size = (long)node.Size; Attributes = node.Attributes; CreationTimeUtc = node.CreationTime; LastAccessTimeUtc = node.LastAccessTime; LastWriteTimeUtc = node.LastChangeTime; }
public FileNodeIndexes(FileNodeBase fileNode, INtfsNode ntfsNode) { FileNode = fileNode; NodeIndex = ntfsNode.NodeIndex; ParentNodeIndex = ntfsNode.ParentNodeIndex; Path = ntfsNode.FullName; if (Path.EndsWith(@"\.")) { Path = Path.Substring(0, Path.Length - 1); } }
public RootNode(WinDirStatModel model, INtfsNode node, bool isAbsoluteRoot) : base(node, GetFileType(node.FullName), GetRootType(isAbsoluteRoot)) { this.model = model; rootPath = System.IO.Path.GetFullPath(node.FullName); if (Type == FileNodeType.Volume) { if (!rootPath.EndsWith(@"\") && !rootPath.EndsWith("/")) { rootPath += '\\'; } } SetupDrive(); }
public FolderNode(INtfsNode node) : this(node, FileNodeType.Directory, FileNodeFlags.None) { }
protected FolderNode(INtfsNode node, FileNodeType type, FileNodeFlags rootType) : base(node, type, rootType) { }