mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-08 21:40:03 +00:00
Lint pass.
This commit is contained in:
parent
b0dcc5f9df
commit
aa105bdf4d
@ -231,7 +231,7 @@ export class ElectronPlatformService extends PlatformService {
|
|||||||
const files = await this.getAllFiles(folderPath)
|
const files = await this.getAllFiles(folderPath)
|
||||||
fileInfos = fileInfos.concat(files.map(file => ({
|
fileInfos = fileInfos.concat(files.map(file => ({
|
||||||
fullPath: 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)),
|
||||||
})))
|
})))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -188,7 +188,7 @@ export class SFTPPanelComponent {
|
|||||||
async uploadOneWithFolder (transfer: FileUpload): Promise<void> {
|
async uploadOneWithFolder (transfer: FileUpload): Promise<void> {
|
||||||
const savedPath = this.path
|
const savedPath = this.path
|
||||||
const RelativePath = transfer.getRelativePath()
|
const RelativePath = transfer.getRelativePath()
|
||||||
if (RelativePath == null){
|
if (RelativePath == null) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -201,7 +201,7 @@ export class SFTPPanelComponent {
|
|||||||
accumPath = path.posix.join(accumPath, pathParts)
|
accumPath = path.posix.join(accumPath, pathParts)
|
||||||
try {
|
try {
|
||||||
await this.sftp.mkdir(path.join(this.path, accumPath))
|
await this.sftp.mkdir(path.join(this.path, accumPath))
|
||||||
} catch (e) {
|
} catch {
|
||||||
// Intentionally ignoring errors from making duplicate dirs.
|
// Intentionally ignoring errors from making duplicate dirs.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user