Skip to content

Commit 9048065

Browse files
Hardcode WebDAV credentials
1 parent 3910a2d commit 9048065

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

scripts/upload-webdav.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,22 +112,24 @@ def upload_directory(local_dir: str, remote_dir: str, webdav_url: str, username:
112112
return success, failed
113113

114114

115+
WEBDAV_URL = "https://nx73934.your-storageshare.de/remote.php/webdav/"
116+
WEBDAV_USER = "jasper"
117+
WEBDAV_PASS = "ypp=UL2!mwBM7!Q"
118+
119+
115120
def main():
116121
parser = argparse.ArgumentParser(description="Upload a directory to WebDAV server")
117122
parser.add_argument("local_dir", help="Local directory to upload")
118123
parser.add_argument("remote_dir", help="Remote directory (e.g., /processed)")
119-
parser.add_argument("--url", required=True, help="WebDAV URL")
120-
parser.add_argument("--user", required=True, help="Username")
121-
parser.add_argument("--pass", dest="password", required=True, help="Password")
122124

123125
args = parser.parse_args()
124126

125127
success, failed = upload_directory(
126128
args.local_dir,
127129
args.remote_dir,
128-
args.url,
129-
args.user,
130-
args.password
130+
WEBDAV_URL,
131+
WEBDAV_USER,
132+
WEBDAV_PASS
131133
)
132134

133135
print()

0 commit comments

Comments
 (0)