Skip to content

Commit a35ee4c

Browse files
committed
v1.2.1
1 parent 7b34ace commit a35ee4c

3 files changed

Lines changed: 23 additions & 21 deletions

File tree

plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "acode.plugin.github",
33
"name": "Github",
44
"main": "dist/main.js",
5-
"version": "1.2.0",
5+
"version": "1.2.1",
66
"readme": "readme.md",
77
"icon": "icon.png",
88
"minVersionCode": 292,

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Access your gist/repositories without cloning/downloading it. To access search `
1212

1313
## Updates
1414

15-
- **1.2.0**
15+
- **1.2.1**
1616
- Upload non text file using 'insert-file' option.
1717
- Updated api according to latest acode.
1818
- **1.1.3**

src/githubFs.js

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export default function githubFs(token, settings) {
250250
return githubFs.constructUrl('repo', user, repoName, newPath, branch);
251251
},
252252
async copyTo(dest) {
253-
throw new Error('Not implemented');
253+
throw new Error('Not supported');
254254
},
255255
async delete() {
256256
if (!path) throw new Error('Cannot delete root');
@@ -261,19 +261,21 @@ export default function githubFs(token, settings) {
261261
await repo.deleteFile(branch, path, commitMessage, sha);
262262
},
263263
async moveTo(dest) {
264-
if (!path) throw new Error('Cannot move root');
265-
await init();
266-
const { path: destPath } = parseUrl(dest);
267-
const newName = Url.join(destPath, Url.basename(path));
268-
const res = await move(newName);
269-
return res;
264+
throw new Error('Not supported');
265+
// if (!path) throw new Error('Cannot move root');
266+
// await init();
267+
// const { path: destPath } = parseUrl(dest);
268+
// const newName = Url.join(destPath, Url.basename(path));
269+
// const res = await move(newName);
270+
// return res;
270271
},
271272
async renameTo(name) {
272-
if (!path) throw new Error('Cannot rename root');
273-
await init();
274-
const newName = Url.join(Url.dirname(path), name);
275-
const res = await move(newName);
276-
return res;
273+
throw new Error('Not supported');
274+
// if (!path) throw new Error('Cannot rename root');
275+
// await init();
276+
// const newName = Url.join(Url.dirname(path), name);
277+
// const res = await move(newName);
278+
// return res;
277279
},
278280
async exists() {
279281
if (!path) return true;
@@ -330,7 +332,7 @@ export default function githubFs(token, settings) {
330332

331333
return {
332334
async lsDir() {
333-
throw new Error('Not implemented');
335+
throw new Error('Not supported');
334336
},
335337
async readFile(encoding) {
336338
await init();
@@ -377,22 +379,22 @@ export default function githubFs(token, settings) {
377379
});
378380
},
379381
async createFile(name, data) {
380-
throw new Error('Not implemented');
382+
throw new Error('Not supported');
381383
},
382384
async createDirectory() {
383-
throw new Error('Not implemented');
385+
throw new Error('Not supported');
384386
},
385387
async copyTo() {
386-
throw new Error('Not implemented');
388+
throw new Error('Not supported');
387389
},
388390
async delete() {
389-
throw new Error('Not implemented');
391+
throw new Error('Not supported');
390392
},
391393
async moveTo() {
392-
throw new Error('Not implemented');
394+
throw new Error('Not supported');
393395
},
394396
async renameTo() {
395-
throw new Error('Not implemented');
397+
throw new Error('Not supported');
396398
},
397399
async exists() {
398400
await init();

0 commit comments

Comments
 (0)