https://github.com/alexander-barth/webdav.jl
A pretty basic WebDAV client for Julia
https://github.com/alexander-barth/webdav.jl
julia webdav
Last synced: 11 months ago
JSON representation
A pretty basic WebDAV client for Julia
- Host: GitHub
- URL: https://github.com/alexander-barth/webdav.jl
- Owner: Alexander-Barth
- License: mit
- Created: 2019-04-30T18:18:58.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-12-11T12:30:31.000Z (over 1 year ago)
- Last Synced: 2025-04-23T20:06:29.233Z (about 1 year ago)
- Topics: julia, webdav
- Language: Julia
- Homepage:
- Size: 148 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WebDAV.jl
[](https://github.com/Alexander-Barth/WebDAV.jl/actions)
[](https://codecov.io/gh/Alexander-Barth/WebDAV.jl)
WebDAV.jl is an experimental WebDAV client for Julia
## Installation
```julia
using Pkg
Pkg.add(PackageSpec(url="https://github.com/Alexander-Barth/WebDAV.jl",rev="master"))
```
## Usage
The functions `download` and `upload` are used to interact with a WebDAV server.
```julia
using WebDAV
username = "user"
password = "abc123"
url = "https://example.com/remote.php/webdav"
s = WebDAV.Server(url,username,password);
fname = "local_file.txt"
remote_fname = "remote_file.txt"
# upload a file to a WebDAV server
r = upload(s, fname, remote_fname)
# download file form a WebDAV server
fname2 = "local_file2.txt"
download(s, remote_fname, fname2)
# list all files and directory under a directory
file_list = readdir(s,"/")
# checks if a file "foo.txt" exists
isfile(s,"foo.txt")
# checks if a directory "dir" exists
isdir(s,"dir")
```