File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments