We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98ea8a4 commit 3d7fdceCopy full SHA for 3d7fdce
python/lsst/resources/file.py
@@ -183,8 +183,9 @@ def transfer_from(
183
)
184
185
# We do not have to special case FileResourcePath here because
186
- # as_local handles that.
187
- with src.as_local(multithreaded=multithreaded) as local_uri:
+ # as_local handles that. If remote download, download it to the
+ # destination directory to allow an atomic rename.
188
+ with src.as_local(multithreaded=multithreaded, tmpdir=self.dirname()) as local_uri:
189
is_temporary = local_uri.isTemporary
190
local_src = local_uri.ospath
191
0 commit comments