Commit 7d276348 authored by davelopez's avatar davelopez
Browse files

Give webdav plugin a clean temp directory



Co-authored-by: default avatarmvdbeek <m.vandenbeek@gmail.com>
parent 5153394f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ class WebDavFilesSource(PyFilesystem2FilesSource):
        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