The WebDAV extension makes it easy to compare and upload files to a remote WebDAV server.
Note
Enhanced vscode-webdav edition by YGGverse
- auto-create remote directories for destination files
- sync options
- auto-upload on save
- auto-delete remote on local delete
- remote files browser
Commands added by this extension:
- WebDAV: Compare (
extension.webdavCompare
) - WebDAV: Upload (
extension.webdavUpload
)
Run Ctrl+Shift+P
from file to upload
To configure one or more remote endpoints, add a webdav.json
to your project root. In this file you can define the endpoints based on one or more folders.
Key | Value |
---|---|
The path, relative to webdav.json, that corresponds to the root of the WebDAV endpoint |
|
{
"/frontend/www": {
"url": "https://webdav.example.com/"
},
"/another-frontend/www": {
"url": "https://webdav2.example.com/",
"ignoreSSLErrors": true,
"uploadOnSave": true
}
}
The first time you connect to a new remote endpoint this extension will ask for a username and password. These credentials will be stored in the system's keychain (using the keytar
library). On macOS the passwords are managed by the Keychain, on Linux they are managed by the Secret Service API/libsecret, and on Windows they are managed by Credential Vault.
git clone https://github.com/YGGverse/vscode-webdav.git
- grab the sourcescd vscode-webdav
- navigate destination directorynpm install
- install dependenciesvsce package
- build.vsix
extension- enter
yes
(or help with deprecatedvscode-webdav
dependencies upgrade)
- enter
- open VSCode, then manually install
.vsix
file compiled in thevscode-webdav
directory