Skip to content

Commit

Permalink
pack: trim end directory separator
Browse files Browse the repository at this point in the history
  • Loading branch information
Nenkai committed Aug 25, 2024
1 parent b49abf8 commit 4258e68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FF16Tools.Pack/Packing/FF16PackBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public FF16PackBuilder(PackBuildOptions options = null, ILoggerFactory loggerFac
/// <param name="ct"></param>
public void InitFromDirectory(string dir, CancellationToken ct = default)
{
dir = dir.Replace('\\', '/');
dir = Path.TrimEndingDirectorySeparator(dir).Replace('\\', '/');
if (string.IsNullOrEmpty(_options.Name) && File.Exists(Path.Combine(dir, ".path")))
{
string[] lines = File.ReadAllLines(Path.Combine(dir, ".path"));
Expand Down

0 comments on commit 4258e68

Please sign in to comment.