Skip to content

Commit

Permalink
#27: Added method CodeFile.Sub() to create a subfolder of code.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcinCelej committed Jan 6, 2024
1 parent afb020c commit e877443
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Documentation/Synergy.Documentation/Code/CodeFolder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

0 comments on commit e877443

Please sign in to comment.