Since os.tmpDir doesn't return the actual path to the temp directory (i.e. MacOS), it is unable to use this library together with a library needs to access the actual path of the temp directory.
How
This pull request replaces os.tmpdir() with temp-dir library to achieve the object because the library returns the real path of the temp directory (i.e. /private/var instead of /var on MacOS).
Why
Since
os.tmpDir
doesn't return the actual path to the temp directory (i.e. MacOS), it is unable to use this library together with a library needs to access the actual path of the temp directory.How
This pull request replaces
os.tmpdir()
withtemp-dir
library to achieve the object because the library returns the real path of the temp directory (i.e./private/var
instead of/var
on MacOS).