Skip to content

Commit 989156a

Browse files
committed
Adding fix for xrootd file path
1 parent fce3aff commit 989156a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

stashcp.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,10 @@ def timed_transfer(filename, destination, cache, debug=False, ):
461461
os.environ.setdefault("XRD_CONNECTIONRETRY", "2") # How many time should we retry the TCP connection
462462
os.environ.setdefault("XRD_STREAMTIMEOUT", "30") # How long to wait for TCP activity
463463

464-
filepath=cache+":1094//"+ filename
464+
if not filename.startswith("/"):
465+
filepath=cache+":1094//"+ filename
466+
else:
467+
filepath=cache+":1094/"+ filename
465468
if debug:
466469
command="xrdcp -d 2 --nopbar -f " + filepath + " " + destination
467470
else:

0 commit comments

Comments
 (0)