fix the last folder name is the number it in list
parent
57f5a1cdd2
commit
13b70a4252
|
@ -52,7 +52,7 @@ class Onedrive {
|
||||||
$pos = splitlast($path, '/');
|
$pos = splitlast($path, '/');
|
||||||
$parentpath = $pos[0];
|
$parentpath = $pos[0];
|
||||||
if ($parentpath=='') $parentpath = '/';
|
if ($parentpath=='') $parentpath = '/';
|
||||||
$filename = $pos[1];
|
$filename = strtolower($pos[1]);
|
||||||
if ($parentfiles = getcache('path_' . $parentpath, $this->disktag)) {
|
if ($parentfiles = getcache('path_' . $parentpath, $this->disktag)) {
|
||||||
if (isset($parentfiles['children'][$filename][$this->DownurlStrName])) {
|
if (isset($parentfiles['children'][$filename][$this->DownurlStrName])) {
|
||||||
if (in_array(splitlast($filename,'.')[1], $exts['txt'])) {
|
if (in_array(splitlast($filename,'.')[1], $exts['txt'])) {
|
||||||
|
@ -93,9 +93,9 @@ class Onedrive {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// files num < 200 , then cache
|
// files num < 200 , then cache
|
||||||
//if (isset($files['children'])) {
|
if (isset($files['children'])) {
|
||||||
//$files['children'] = children_name($files['children']);
|
$files['children'] = children_name($files['children']);
|
||||||
//}
|
}
|
||||||
savecache('path_' . $path, $files, $this->disktag);
|
savecache('path_' . $path, $files, $this->disktag);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue