Skip to content

Commit

Permalink
🐛 修复OneDrive创建多余目录的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
CodFrm committed Dec 20, 2022
1 parent e79a5fb commit 3e326d7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ dist-ssr
*.sw?

coverage
CHANGELOG
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scriptcat",
"version": "0.11.0-beta.3",
"version": "0.11.0",
"description": "脚本猫,一个可以执行用户脚本的浏览器扩展,万物皆可脚本化,让你的浏览器可以做更多的事情!",
"author": "CodFrm",
"license": "GPLv3",
Expand Down
6 changes: 2 additions & 4 deletions pkg/filesystem/onedrive/onedrive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,12 @@ export default class OneDriveFileSystem implements FileSystem {
const dirs = dir.split("/");
let parent = "";
if (dirs.length > 2) {
parent = dirs.slice(0, dirs.length - 2).join("/");
parent = dirs.slice(0, dirs.length - 1).join("/");
}
const myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
return this.request(
`https://graph.microsoft.com/v1.0/me/drive/special/approot:${parent}/${
dirs[dirs.length - 1]
}:/children`,
`https://graph.microsoft.com/v1.0/me/drive/special/approot:${parent}:/children`,
{
method: "POST",
headers: myHeaders,
Expand Down
2 changes: 1 addition & 1 deletion src/app/const.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const ExtVersion = "0.11.0-beta.3";
export const ExtVersion = "0.11.0";

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

Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "ScriptCat",
"version": "0.11.0.1040",
"version": "0.11.0",
"author": "CodFrm",
"description": "脚本猫,一个用户脚本管理器,支持后台脚本、定时脚本、页面脚本,可编写脚本每天帮你自动处理事务.",
"options_ui": {
Expand Down

0 comments on commit 3e326d7

Please sign in to comment.