Class PathBuilder
Reconstructs full hierarchical paths from a flat record array. Each
record holds its parent's index in ParentIndex,
so a path is built by walking parent links back to a root entry
(where ParentIndex equals the entry's own index, or is out of range).
Inherited Members
Namespace: FexViewer.Models
Assembly: FexViewer.dll
Syntax
public static class PathBuilder
Remarks
Doing this in C# is significantly faster than calling
GetFilePath per record for large filesystems — one pass over the
array versus one round-trip per file.
Methods
BuildFullPaths(IReadOnlyList<FileRecord>)
Builds the full path for every record in records.
Declaration
public static string[] BuildFullPaths(IReadOnlyList<FileRecord> records)
Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyList<FileRecord> | records | Flat record list as produced by GetFileList(int). |
Returns
| Type | Description |
|---|---|
| string[] | Array of paths the same length and order as |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|