fixed #7522, fixed #7577 - sftp: keep permissions when editing file locally

This commit is contained in:
Eugene Pankov
2022-12-03 12:56:55 +01:00
parent fa1649de83
commit 78b17d3980
2 changed files with 7 additions and 1 deletions

View File

@@ -52,7 +52,8 @@ export class EditSFTPContextMenu extends SFTPContextMenuItemProvider {
if (!upload.length) {
return
}
sftp.upload(item.fullPath, upload[0])
await sftp.upload(item.fullPath, upload[0])
await sftp.chmod(item.fullPath, item.mode)
})).subscribe()
watcher.on('close', () => events.complete())
sftp.closed$.subscribe(() => watcher.close())