diff --git a/tabby-electron/src/services/platform.service.ts b/tabby-electron/src/services/platform.service.ts index e8d20a0b..701136ec 100644 --- a/tabby-electron/src/services/platform.service.ts +++ b/tabby-electron/src/services/platform.service.ts @@ -231,7 +231,7 @@ export class ElectronPlatformService extends PlatformService { const files = await this.getAllFiles(folderPath) fileInfos = fileInfos.concat(files.map(file => ({ fullPath: file, - relativePath: path.posix.join(path.basename(folderPath), path.posix.relative(folderPath, file)) + relativePath: path.posix.join(path.basename(folderPath), path.posix.relative(folderPath, file)), }))) } diff --git a/tabby-ssh/src/components/sftpPanel.component.ts b/tabby-ssh/src/components/sftpPanel.component.ts index bee3a38b..129db3b4 100644 --- a/tabby-ssh/src/components/sftpPanel.component.ts +++ b/tabby-ssh/src/components/sftpPanel.component.ts @@ -188,7 +188,7 @@ export class SFTPPanelComponent { async uploadOneWithFolder (transfer: FileUpload): Promise { const savedPath = this.path const RelativePath = transfer.getRelativePath() - if (RelativePath == null){ + if (RelativePath == null) { return } @@ -201,7 +201,7 @@ export class SFTPPanelComponent { accumPath = path.posix.join(accumPath, pathParts) try { await this.sftp.mkdir(path.join(this.path, accumPath)) - } catch (e) { + } catch { // Intentionally ignoring errors from making duplicate dirs. } }