[Python-ideas] tempfile.TemporaryDirectory() should be able to create temporary directory at a given arbitrary place
Serhiy Storchaka
storchaka at gmail.com
Tue Jul 18 08:06:20 EDT 2017
18.07.17 14:55, George Fischhof пише:
> I used tempfile.TemporaryDirectory(). On first usage it was good, but on
> second one there was a need to create tempopray directory and files in
> it a given place. (It needed for a test).
>
> And I found that TemporaryDirectory() is not able to do this. So my idea
> is to implement this behaviour with an addittional path parameter in it.
You can pass the dir argument to TemporaryDirectory().
More information about the Python-ideas
mailing list