mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-20 14:46:35 +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
|
// 400 Character Limit for OneDrive Business / Office 365
|
||||||
// 430 Character Limit for OneDrive Personal
|
// 430 Character Limit for OneDrive Personal
|
||||||
auto maxPathLength = 0;
|
auto maxPathLength = 0;
|
||||||
|
import std.range : walkLength;
|
||||||
|
import std.uni : byGrapheme;
|
||||||
if (accountType == "business"){
|
if (accountType == "business"){
|
||||||
// Business Account
|
// Business Account
|
||||||
maxPathLength = 400;
|
maxPathLength = 400;
|
||||||
|
@ -958,7 +960,7 @@ final class SyncEngine
|
||||||
maxPathLength = 430;
|
maxPathLength = 430;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(encodeComponent(path).length < maxPathLength){
|
if(path.byGrapheme.walkLength < maxPathLength){
|
||||||
// path is less than maxPathLength
|
// path is less than maxPathLength
|
||||||
|
|
||||||
if (isSymlink(path)) {
|
if (isSymlink(path)) {
|
||||||
|
|
Loading…
Reference in a new issue