I used tempfile.mkdtemp with a prefix to create temporary files. This leads to a lot of different directories in my tmp folder with ' tmp/myprefix{uniq-string}/ '.
I would like to change this and have a subdirectory so that my temporary folders that I create are under the same main directory, so the prefix is ββactually a subfolder of tmp ' tmp/myprefix/{uniq-string}/ '.
Also, I don't want to override the tempfile system to define the default tmp directory.
I tried playing with the " prefix " and " dir " options, but without success.
sutee source share