@@ -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