You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -485,46 +489,6 @@ async function store(state, emitter) {
485
489
}
486
490
}
487
491
}
488
-
// for (let i in state.selectedFiles) {
489
-
// const file = state.selectedFiles[i]
490
-
491
-
// if (file.source === 'board') {
492
-
// if (file.type === 'folder') {
493
-
// let folder_path = serial.getFullPath('/', state.boardNavigationPath, file.fileName)
494
-
// let command = microPythonFShelpers
495
-
// command += microPythonDeleteFolder
496
-
// command += `delete_folder('${folder_path}')`
497
-
// await serial.run(command)
498
-
// } else {
499
-
// await serial.removeFile(
500
-
// serial.getFullPath(
501
-
// '/',
502
-
// state.boardNavigationPath,
503
-
// file.fileName
504
-
// )
505
-
// )
506
-
// }
507
-
// } else {
508
-
// if (file.type === 'folder') {
509
-
// await disk.removeFolder(
510
-
// disk.getFullPath(
511
-
// state.diskNavigationRoot,
512
-
// state.diskNavigationPath,
513
-
// file.fileName
514
-
// )
515
-
// )
516
-
// } else {
517
-
// await disk.removeFile(
518
-
// disk.getFullPath(
519
-
// state.diskNavigationRoot,
520
-
// state.diskNavigationPath,
521
-
// file.fileName
522
-
// )
523
-
// )
524
-
// }
525
-
// }
526
-
// }
527
-
528
492
emitter.emit('refresh-files')
529
493
// state.selectedFiles = []
530
494
state.isRemoving=false
@@ -593,11 +557,11 @@ async function store(state, emitter) {
593
557
newFileContent
594
558
)
595
559
}
596
-
state.creatingFile=null
597
-
state.creatingFolder=null
560
+
598
561
599
562
setTimeout(()=>{
600
563
state.creatingFile=null
564
+
state.creatingFolder=null
601
565
emitter.emit('refresh-files')
602
566
emitter.emit('render')
603
567
},200)
@@ -714,11 +678,12 @@ async function store(state, emitter) {
714
678
emitter.emit('render')
715
679
for(letiinstate.selectedDiskFiles){
716
680
constfile=state.selectedDiskFiles[i]
681
+
state.currentFSItem=file.fileName
682
+
state.transferringProgress=null
717
683
if(file.type==='folder'){
718
684
constconfirmAction=alert(`Folder transfer not yet available`)
719
685
continue
720
686
}
721
-
722
687
awaitserial.uploadFile(
723
688
disk.getFullPath(
724
689
state.diskNavigationRoot,
@@ -750,10 +715,11 @@ async function store(state, emitter) {
750
715
constconfirmAction=confirm(`Copying these items might overwrite existing files/folders on your computer:\n ${fileNames.join('\n')}`,'Cancel','Proceed')
0 commit comments