Hi,
I've created a new function which enables the user to set a custom local path in the workspace he uses(if not all files are meant to be uploaded to the host). The code is tested. Although I've found one bug, that is not in the issues and its not related the the code changes made by me, here is more info:
The pickResult.then() in list-command.js sometimes returns a result with "error: null" and its not handled, which results to TypeError exception and cannot ready property name or path(where applicable) of undefined.
The function works, but not always, I wasn't able to tell why exactly. I've tested the original code of this file and the result is the same. Tested with the following config file here:
{
"remotePath": "./public_html/project",
"localPath": "D:/Workspace/Web/project/dist",
"host": "host",
"username": "user",
"password": "pass",
"port": 21,
"secure": false,
"protocol": "ftp",
"uploadOnSave": true,
"passive": false,
"debug": false,
"privateKeyPath": null,
"passphrase": null,
"ignore": [
"\.vscode",
"\.git",
"\.DS_Store",
"\node_modules"
],
"generatedFiles": {
"uploadOnSave": true,
"extensionsToInclude": [],
"path": "D:/Workspace/Web/project/dist"
}
}
Hi, I've created a new function which enables the user to set a custom local path in the workspace he uses(if not all files are meant to be uploaded to the host). The code is tested. Although I've found one bug, that is not in the issues and its not related the the code changes made by me, here is more info: The pickResult.then() in list-command.js sometimes returns a result with "error: null" and its not handled, which results to TypeError exception and cannot ready property name or path(where applicable) of undefined. The function works, but not always, I wasn't able to tell why exactly. I've tested the original code of this file and the result is the same. Tested with the following config file here: { "remotePath": "./public_html/project", "localPath": "D:/Workspace/Web/project/dist", "host": "host", "username": "user", "password": "pass", "port": 21, "secure": false, "protocol": "ftp", "uploadOnSave": true, "passive": false, "debug": false, "privateKeyPath": null, "passphrase": null, "ignore": [ "\.vscode", "\.git", "\.DS_Store", "\node_modules" ], "generatedFiles": { "uploadOnSave": true, "extensionsToInclude": [], "path": "D:/Workspace/Web/project/dist" } }