fix the last folder name is the number it in list

pull/321/head
qkqpttgf 2021-05-13 09:54:52 +08:00 committed by GitHub
parent 57f5a1cdd2
commit 13b70a4252
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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);
}
}