Skip to content

Commit

Permalink
Give webdav plugin a clean temp directory
Browse files Browse the repository at this point in the history
Co-authored-by: mvdbeek <[email protected]>
  • Loading branch information
davelopez and mvdbeek committed Jan 31, 2024
1 parent 5153394 commit 7d27634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/files/sources/webdav.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def _open_fs(self, user_context=None, opts: Optional[FilesSourceOptions] = None)
if use_temp_files is None:
# Default to True to avoid memory issues with large files.
props["use_temp_files"] = True
props["temp_path"] = props.get("temp_path", tempfile.gettempdir())
props["temp_path"] = props.get("temp_path", tempfile.TemporaryDirectory(prefix="webdav_"))
extra_props: Union[FilesSourceProperties, dict] = opts.extra_props or {} if opts else {}
handle = WebDAVFS(**{**props, **extra_props})
return handle
Expand Down

0 comments on commit 7d27634

Please sign in to comment.