mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-10 01:36:39 +02:00
* Update the handling of maximum path length calculation
This commit is contained in:
parent
a3f69d4a2e
commit
a08df3d7fd
|
@ -950,6 +950,8 @@ final class SyncEngine
|
|||
// 400 Character Limit for OneDrive Business / Office 365
|
||||
// 430 Character Limit for OneDrive Personal
|
||||
auto maxPathLength = 0;
|
||||
import std.range : walkLength;
|
||||
import std.uni : byGrapheme;
|
||||
if (accountType == "business"){
|
||||
// Business Account
|
||||
maxPathLength = 400;
|
||||
|
@ -958,7 +960,7 @@ final class SyncEngine
|
|||
maxPathLength = 430;
|
||||
}
|
||||
|
||||
if(encodeComponent(path).length < maxPathLength){
|
||||
if(path.byGrapheme.walkLength < maxPathLength){
|
||||
// path is less than maxPathLength
|
||||
|
||||
if (isSymlink(path)) {
|
||||
|
|
Loading…
Reference in a new issue