From 13b70a42525f4ade628a1969598446cbed874e54 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Thu, 13 May 2021 09:54:52 +0800 Subject: [PATCH] fix the last folder name is the number it in list --- disk/Onedrive.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/disk/Onedrive.php b/disk/Onedrive.php index c7e01c9..d854886 100644 --- a/disk/Onedrive.php +++ b/disk/Onedrive.php @@ -52,7 +52,7 @@ class Onedrive { $pos = splitlast($path, '/'); $parentpath = $pos[0]; if ($parentpath=='') $parentpath = '/'; - $filename = $pos[1]; + $filename = strtolower($pos[1]); if ($parentfiles = getcache('path_' . $parentpath, $this->disktag)) { if (isset($parentfiles['children'][$filename][$this->DownurlStrName])) { if (in_array(splitlast($filename,'.')[1], $exts['txt'])) { @@ -93,9 +93,9 @@ class Onedrive { } } else { // files num < 200 , then cache - //if (isset($files['children'])) { - //$files['children'] = children_name($files['children']); - //} + if (isset($files['children'])) { + $files['children'] = children_name($files['children']); + } savecache('path_' . $path, $files, $this->disktag); } }