Open mean-cj opened 3 years ago
I am currently facing the same situation on Mac OS. Downloading works fine and the console also tells me so when I upload or sync from local to remote, but when I check on my FTP server the files are not there.
+1
I made a short fix in file "commandUploadChangedFiles.ts", and repackage this plugin. It works for me.
await Promise.all(creates.concat(uploads).map(change => {
try {
uploadFile(change.uri)
} catch (e) {
console.log('upload err', e);
}
}));
await Promise.all(
renames.map(change => {
try {
renameRemote(change.originalUri, { originPath: change.renameUri!.fsPath });
} catch (e) {
console.log('upload err', e);
}
})
);
I made a short fix in file "commandUploadChangedFiles.ts", and repackage this plugin. It works for me.
await Promise.all(creates.concat(uploads).map(change => { try { uploadFile(change.uri) } catch (e) { console.log('upload err', e); } })); await Promise.all( renames.map(change => { try { renameRemote(change.originalUri, { originPath: change.renameUri!.fsPath }); } catch (e) { console.log('upload err', e); } }) );
Hi Bro,
Where is file "commandUploadChangedFiles.ts" and how to do repackage this plugin. how to fix ? you can say detail ?
Thanks!
I made a short fix in file "commandUploadChangedFiles.ts", and repackage this plugin. It works for me.
await Promise.all(creates.concat(uploads).map(change => { try { uploadFile(change.uri) } catch (e) { console.log('upload err', e); } })); await Promise.all( renames.map(change => { try { renameRemote(change.originalUri, { originPath: change.renameUri!.fsPath }); } catch (e) { console.log('upload err', e); } }) );
Hi Bro,
Where is file "commandUploadChangedFiles.ts" and how to do repackage this plugin. how to fix ? you can say detail ?
Thanks!
I mean clone this repo and build the plugin.
i recommend to use. https://github.com/Natizyskunk/vscode-sftp
Do you read the FAQ?
Describe the bug "Upload changed files" doesn't work , first issued start on 2019, and now 2021 this problem persists https://github.com/liximomo/vscode-sftp/issues/545 https://github.com/liximomo/vscode-sftp/issues/580 https://github.com/liximomo/vscode-sftp/issues/854
@wandbferreira talk about this problem
@danieleiobbi sugggestion creat a keyboard shortcut https://github.com/liximomo/vscode-sftp/issues/854#issuecomment-771527376
Please help to fix Thank you.