diff --git a/ddsc/core/d4s2.py b/ddsc/core/d4s2.py
index d913995..62642a0 100644
--- a/ddsc/core/d4s2.py
+++ b/ddsc/core/d4s2.py
@@ -12,7 +12,7 @@ from ddsc.core.download import ProjectDownload
 from ddsc.core.ddsapi import DataServiceAuth
 from ddsc.core.util import KindType
 from ddsc.versioncheck import get_internal_version_str
-from ddsc.core.remotestore import ProjectNameOrId
+from ddsc.core.remotestore import ProjectNameOrId, RemotePath
 
 UNAUTHORIZED_MESSAGE = """
 ERROR: Your account does not have authorization for D4S2 (the deliver/share service).
@@ -480,5 +480,5 @@ class UploadedFileRelations(object):
         name_parts = [ancestor['name'] for ancestor in file_details['ancestors']
                       if ancestor['kind'] == KindType.folder_str]
         name_parts.append(file_details['name'])
-        remote_path = os.sep.join(name_parts)
+        remote_path = RemotePath.add_leading_slash(os.sep.join(name_parts))
         return self.activity.remote_path_to_file_version_id[remote_path]

Delivery with --copy flag fails with KeyError
This fails trying to create a relationship between the original file and the copy that will be delivered:
```
  File ".../ddsc/core/d4s2.py", line 467, in run
    used_entity_id = self._lookup_used_entity_id(file_details)
  File ".../ddsc/core/d4s2.py", line 484, in _lookup_used_entity_id
    return self.activity.remote_path_to_file_version_id[remote_path]
KeyError: u'docs/GettingAgentAndUserKeys.md'
```
diff --git a/ddsc/core/tests/test_d4s2.py b/ddsc/core/tests/test_d4s2.py
index b4ab33c..f84e0ad 100644
--- a/ddsc/core/tests/test_d4s2.py
+++ b/ddsc/core/tests/test_d4s2.py
@@ -196,7 +196,7 @@ class TestUploadedFileRelations(TestCase):
         new_activity_id = '2'
         download_file_version_id = '32'
         upload_file_version_id = '33'
-        file_remote_path = 'data/results/seq1.fasta'
+        file_remote_path = '/data/results/seq1.fasta'
         file_details = {
             'name': 'seq1.fasta',
             'current_version': {

pip install -e .[dev]
parse_log_pytest
requirements.txt
nose mock pytest
3.9
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
certifi==2025.1.31
charset-normalizer==3.4.1
-e git+https://github.com/Duke-GCB/DukeDSClient.git@16d75079cbc28b048fdc547e928e8778190d8e9c#egg=DukeDSClient
exceptiongroup==1.2.2
future==0.16.0
idna==3.10
iniconfig==2.1.0
mock==5.2.0
nose==1.3.7
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
pytz==2025.2
PyYAML==5.1
requests==2.32.3
six==1.10.0
tenacity==5.0.4
tomli==2.2.1
urllib3==2.3.0

name: DukeDSClient
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - pip=25.0=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - certifi==2025.1.31
      - charset-normalizer==3.4.1
      - exceptiongroup==1.2.2
      - future==0.16.0
      - idna==3.10
      - iniconfig==2.1.0
      - mock==5.2.0
      - nose==1.3.7
      - packaging==24.2
      - pluggy==1.5.0
      - pytest==8.3.5
      - pytz==2025.2
      - pyyaml==5.1
      - requests==2.32.3
      - six==1.10.0
      - tenacity==5.0.4
      - tomli==2.2.1
      - urllib3==2.3.0
prefix: /opt/conda/envs/DukeDSClient

ddsc/core/tests/test_d4s2.py::TestUploadedFileRelations::test_run
ddsc/core/tests/test_d4s2.py::TestD4S2Project::test_copy_project ddsc/core/tests/test_d4s2.py::TestD4S2Project::test_deliver ddsc/core/tests/test_d4s2.py::TestD4S2Project::test_deliver_to_bad_email ddsc/core/tests/test_d4s2.py::TestD4S2Project::test_deliver_with_self ddsc/core/tests/test_d4s2.py::TestD4S2Project::test_share ddsc/core/tests/test_d4s2.py::TestD4S2Project::test_share_to_bad_email ddsc/core/tests/test_d4s2.py::TestD4S2Project::test_share_with_self ddsc/core/tests/test_d4s2.py::TestCopyActivity::test_constructor_and_finished ddsc/core/tests/test_d4s2.py::TestDownloadedFileRelations::test_run
ddsc/core/d4s2.py
ddsc/core/d4s2.py