From e8774439245025992a747393b23565466c9b5d71 Mon Sep 17 00:00:00 2001 From: Marcin Celej Date: Sat, 6 Jan 2024 19:34:15 +0100 Subject: [PATCH] #27: Added method CodeFile.Sub() to create a subfolder of code. --- Documentation/Synergy.Documentation/Code/CodeFolder.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/Synergy.Documentation/Code/CodeFolder.cs b/Documentation/Synergy.Documentation/Code/CodeFolder.cs index 6716155..8711ac0 100644 --- a/Documentation/Synergy.Documentation/Code/CodeFolder.cs +++ b/Documentation/Synergy.Documentation/Code/CodeFolder.cs @@ -26,4 +26,7 @@ public CodeFile File(string fileName) public CodeFolder Up(int jumps = 1) => new(System.IO.Path.Combine(this.Path, string.Join("/", Enumerable.Repeat("..", jumps)))); + + public CodeFolder Sub(string subfolder) + => new(System.IO.Path.Combine(Path, subfolder)); } \ No newline at end of file