add copy path button to file browser #143

This commit is contained in:
Max Myers
2021-10-19 15:36:29 -04:00
parent cfcf2f0890
commit aa862101f0
2 changed files with 9 additions and 3 deletions
@@ -110,6 +110,10 @@ export class FilesComponent implements OnInit {
this.selectedFiles.length = 0;
}
}
copyPathToClipboard(path = null) {
this.appService.electron.clipboard.writeText(path || this.currentPath);
this.statusService.showStatus(`Copied file path to your clipboard!`);
}
async uploadFolder(folder, files, task) {
task.status = 'Restoring Folder... ' + folder;
if (this.appService.fs.existsSync(folder)) {