On 17.02.12 04:37, Jessica wrote: > I am running Matlab on a Mac 10.6.8. I am running a code that uses ?aviwrite? and ?filloval? to generate a video. Very large files are being stored within the mac?s administrative folder ?Private? (normally hidden from view because files within this folder are not supposed to be changed) when I run this code. I am not specifying the pathway to this ?private? folder so do not know why files are being stored there. These large files are given names such as ?tp63709af9_4b33_4060_b04f_ec4083b6c5dd.tmp.? These large files are automatically deleted if the code completes the video but these large files are not deleted if I force the code to end early (before it has completed making the video). How can I stop Matlab from stores these files here?
/private on a mac contains, among other things, /private/tmp, which is one of two options for where programs are supposed to place temporary files, and the system will clean up anything left behind; for /private/tmp/, that happens on a daily basis by default, with files removed if they haven't been accessed in the last three days. (Cf. daily_clean_tmps_days in /etc/defaults/periodic.conf, noting that /tmp is actually just a symbolic link to /private/tmp.)
I don't know if you can ask MATLAB to store its temporary files someplace else, I just wanted to point out that what is happening is actually the right thing.