add comment
This commit is contained in:
@@ -35,6 +35,7 @@ namespace Duplicati.Library.Common.IO
|
||||
|
||||
private static bool IsPathTooLong(string path)
|
||||
{
|
||||
// Use 258 for length check instead of 260 (MAX_PATH) - we need to leave room for the 16-bit (wide) null terminator
|
||||
return path.StartsWith(UNCPREFIX, StringComparison.Ordinal) || path.StartsWith(UNCPREFIX_SERVER, StringComparison.Ordinal) || path.Length > 258;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user