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;
 }
Ejemplo n.º 3
0
 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);
     }
 }
Ejemplo n.º 4
0
 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();
 }
Ejemplo n.º 5
0
 public FolderNode(INtfsNode node)
     : this(node, FileNodeType.Directory, FileNodeFlags.None)
 {
 }
Ejemplo n.º 6
0
 protected FolderNode(INtfsNode node, FileNodeType type, FileNodeFlags rootType)
     : base(node, type, rootType)
 {
 }