Linux and OSX directory length limits
This commit is contained in:
parent
6901b8be35
commit
f822a23daa
3 changed files with 67 additions and 23 deletions
|
|
@ -68,7 +68,7 @@ namespace FileManager
|
|||
///a choice made by the linux kernel. As best as I can tell, pretty
|
||||
//much everyone uses UTF-8.
|
||||
int getFilesystemStringLength(StringBuilder str)
|
||||
=> LongPath.PlatformID is PlatformID.Win32NT ?
|
||||
=> LongPath.IsWindows ?
|
||||
str.Length
|
||||
: Encoding.UTF8.GetByteCount(str.ToString());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue