Having read the Stata FAQ and a variety of posts here, it seems that one cannot set the temporary directory from within Stata (e.g., in a do-file) — instead it has to be set as an OS-level environment variable.
The data provider for a project I'm doing requires that the temporary directory be redirected to a directory within the encrypted disk for this project for security reasons. I cannot change this specific requirement, so if you're about to suggest I simply encrypt the boot volume and don't fuss over the default tempdir... thanks, but I tried that argument with the data provider and was unsuccessful.
My shop is cross-platform (macOS and Windows). Is the best I can do to ensure compliance with this requirement to 1) create OS-specific scripts to launch Stata for this project; and 2) in every do-file for the project, use assert to check that c(tmpdir) is where it needs to be?
I know how to do that. It just seems like a Rube Goldberg way to do it.
The data provider for a project I'm doing requires that the temporary directory be redirected to a directory within the encrypted disk for this project for security reasons. I cannot change this specific requirement, so if you're about to suggest I simply encrypt the boot volume and don't fuss over the default tempdir... thanks, but I tried that argument with the data provider and was unsuccessful.
My shop is cross-platform (macOS and Windows). Is the best I can do to ensure compliance with this requirement to 1) create OS-specific scripts to launch Stata for this project; and 2) in every do-file for the project, use assert to check that c(tmpdir) is where it needs to be?
I know how to do that. It just seems like a Rube Goldberg way to do it.
Comment