Skip to content

Commit 54c3e2f

Browse files
authored
Update MDocUpdater.cs (#597)
1 parent d0f73fe commit 54c3e2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mdoc/Mono.Documentation/MDocUpdater.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ private void CleanupFiles (string dest, HashSet<string> goodfiles)
14181418

14191419
private static TextWriter OpenWrite (string path, FileMode mode)
14201420
{
1421-
var fs = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? QuickIOFile.Open(Path.GetFullPath(path), mode) : new FileStream(path, mode);
1421+
var fs = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && Path.GetFullPath(path).Length>=260 ? QuickIOFile.Open(Path.GetFullPath(path), mode) : new FileStream(path, mode);
14221422
var w = new StreamWriter (fs, new UTF8Encoding (false));
14231423
w.NewLine = "\n";
14241424
return w;

0 commit comments

Comments
 (0)