Skip to content

Commit 1704cf0

Browse files
authored
Truncate path to 259 characters instead of 260. (#550)
1 parent 0c057f1 commit 1704cf0

File tree

1 file changed

+1
-1
lines changed
  • Solutions/Corvus.Json.CodeGeneration/Corvus.Json.CodeGeneration/Internal

1 file changed

+1
-1
lines changed

Solutions/Corvus.Json.CodeGeneration/Corvus.Json.CodeGeneration/Internal/PathTruncator.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static class PathTruncator
1919
/// <param name="maxLength">The maximum length of the path.</param>
2020
/// <returns>The truncated path.</returns>
2121
/// <exception cref="ArgumentException">The directory path is too long to truncation the file name.</exception>
22-
public static string TruncatePath(string path, int maxLength = 260)
22+
public static string TruncatePath(string path, int maxLength = 259)
2323
{
2424
if (string.IsNullOrEmpty(path))
2525
{

0 commit comments

Comments
 (0)