Skip to content

Commit 69b1151

Browse files
author
Thomas Fuchs
committed
Apply review comments
1 parent e0fb19e commit 69b1151

File tree

11 files changed

+351
-356
lines changed

11 files changed

+351
-356
lines changed

docs/articles/framework/FileSystem.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ uid: FileSystem
33
---
44
# FileSystem
55

6+
## Inspiration
7+
8+
The MORYX file system was inspired by the GIT tree and obj structure.
9+
10+
## Architecture
11+
612
````mermaid
713
classDiagram
814
MoryxFile <|-- Blob

src/Moryx.Runtime.Kernel/FileSystem/HashPath.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,7 @@ private static string HashFromStream(Stream stream)
5151
stream.Position = 0;
5252

5353
var hash = hashing.ComputeHash(stream);
54-
var nameBuilder = new StringBuilder(hash.Length * 2);
55-
foreach (var hashByte in hash)
56-
{
57-
nameBuilder.AppendFormat("{0:X2}", hashByte);
58-
}
59-
name = nameBuilder.ToString();
54+
name = BitConverter.ToString(hash).Replace("-", string.Empty);
6055

6156
stream.Position = 0;
6257
}

0 commit comments

Comments
 (0)