Skip to content

Commit 3e326d7

Browse files
committed
🐛 修复OneDrive创建多余目录的bug
1 parent e79a5fb commit 3e326d7

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ dist-ssr
2424
*.sw?
2525

2626
coverage
27+
CHANGELOG

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "scriptcat",
3-
"version": "0.11.0-beta.3",
3+
"version": "0.11.0",
44
"description": "脚本猫,一个可以执行用户脚本的浏览器扩展,万物皆可脚本化,让你的浏览器可以做更多的事情!",
55
"author": "CodFrm",
66
"license": "GPLv3",

pkg/filesystem/onedrive/onedrive.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,12 @@ export default class OneDriveFileSystem implements FileSystem {
5858
const dirs = dir.split("/");
5959
let parent = "";
6060
if (dirs.length > 2) {
61-
parent = dirs.slice(0, dirs.length - 2).join("/");
61+
parent = dirs.slice(0, dirs.length - 1).join("/");
6262
}
6363
const myHeaders = new Headers();
6464
myHeaders.append("Content-Type", "application/json");
6565
return this.request(
66-
`https://graph.microsoft.com/v1.0/me/drive/special/approot:${parent}/${
67-
dirs[dirs.length - 1]
68-
}:/children`,
66+
`https://graph.microsoft.com/v1.0/me/drive/special/approot:${parent}:/children`,
6967
{
7068
method: "POST",
7169
headers: myHeaders,

src/app/const.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const ExtVersion = "0.11.0-beta.3";
1+
export const ExtVersion = "0.11.0";
22

33
export const ExtServer = "https://ext.scriptcat.org/";
44

src/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 2,
33
"name": "ScriptCat",
4-
"version": "0.11.0.1040",
4+
"version": "0.11.0",
55
"author": "CodFrm",
66
"description": "脚本猫,一个用户脚本管理器,支持后台脚本、定时脚本、页面脚本,可编写脚本每天帮你自动处理事务.",
77
"options_ui": {

0 commit comments

Comments
 (0)