Skip to content

Commit 21054f1

Browse files
committed
feat: change base destination so /gridpp/ is required
1 parent 546b1b9 commit 21054f1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/dask_dirac/_dirac.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def add_file(
145145
"""Add file to directory on DIRAC server"""
146146
# example: https://github.com/cern-fts/gfal2-python/blob/develop/example/python/gfal2_copy.py
147147
# For now put everything under swift-hep at RAL site
148-
base_destination = "gsiftp://mover.pp.rl.ac.uk:2880/pnfs/pp.rl.ac.uk/data/gridpp/"
148+
base_destination = "https://mover.pp.rl.ac.uk:2880/pnfs/pp.rl.ac.uk/data"
149149

150150
# upload the file to server
151151
destination = f"{base_destination}{remote_file}"
@@ -160,6 +160,9 @@ def add_file(
160160
context.filecopy(params, source, destination)
161161

162162
# register file
163+
# if file is already registered, then this won't work.
164+
# Need to remove the file first.
165+
# TODO: remove file if --overwrite is being used
163166
endpoint = "DataManagement/FileCatalog"
164167
settings.query_url = f"{settings.server_url}/{endpoint}"
165168

0 commit comments

Comments
 (0)