Skip to content

Commit beee375

Browse files
committed
refactor: webdav
1 parent 8983959 commit beee375

File tree

6 files changed

+6
-9
lines changed

6 files changed

+6
-9
lines changed

databusclient/api/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

databusclient/api/download.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
from typing import List, Iterator
1+
from typing import List
22
import requests
33
import os
44
from tqdm import tqdm
55
import json
66
from SPARQLWrapper import SPARQLWrapper, JSON
77

8-
from databusclient.api.delete import _delete_group, _delete_resource
98
from databusclient.api.utils import get_databus_id_parts_from_uri, fetch_databus_jsonld
109

1110

databusclient/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import click
66
from typing import List
77

8-
from databusclient.rclone_wrapper import upload
8+
from databusclient.extensions import webdav
99

1010
from databusclient.api.delete import delete as api_delete
1111
import databusclient.api.deploy as api_deploy
@@ -81,7 +81,7 @@ def deploy(version_id, title, abstract, description, license_url, apikey,
8181

8282
click.echo("[MODE] Upload & Deploy to DBpedia Databus via Nextcloud")
8383
click.echo(f"→ Uploading to: {remote}:{path}")
84-
metadata = upload.upload_to_nextcloud(distributions, remote, path, webdav_url)
84+
metadata = webdav.upload_to_webdav(distributions, remote, path, webdav_url)
8585
api_deploy.deploy_from_metadata(metadata, version_id, title, abstract, description, license_url, apikey)
8686
return
8787

databusclient/consume/download.py

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def get_all_files(path):
2626
files.append(os.path.join(root, name))
2727
return files
2828

29-
def upload_to_nextcloud(source_paths: list[str], remote_name: str, remote_path: str, webdav_url: str):
29+
def upload_to_webdav(source_paths: list[str], remote_name: str, remote_path: str, webdav_url: str):
3030
result = []
3131
for path in source_paths:
3232
if not os.path.exists(path):

0 commit comments

Comments
 (0)