[Midas] where to store "temp" files

Michael Grauer michael.grauer at kitware.com
Wed Jul 4 12:46:02 EDT 2012


You could also create a subdir of the temporary directory, which the
GlobalController has a method for, and all controllers inherit from:

getTempDirectory()



Thanks,
Mike

On Wed, Jul 4, 2012 at 12:35 PM, Zach Mullen <zach.mullen at kitware.com>wrote:

> The thumbnailcreator example is a good one of how we do it; we use a
> subdirectory of /data, and then make sure we clean up any temporary files
> after we are done.  As long as the server has appropriate permissions to
> write into the subdirectory, that should work fine.
>
> Thanks,
>
> Zach
>
>
> On Wed, Jul 4, 2012 at 12:30 PM, Mona Wong <mona at sdsc.edu> wrote:
>
>>
>>         My module needs to create some temporary files for the user.
>>  What's the best way to do this?  What's the best place to store them?
>>
>>         I see midas/data/ and I'm looking at the thumbnailcreator module
>> for an example.  Anything else I should be aware?
>>
>> thanks,
>> Mona
>>
>>
>> *********************************************
>>     Mona Wong
>>     Web & iPad Application Developer
>>     San Diego Supercomputer Center
>>
>>     "Forgive everyone everything."
>>                                 -- Regina Brett
>> *********************************************
>>
>>
>>
>>
>> _______________________________________________
>> Midas mailing list
>> Midas at public.kitware.com
>> http://public.kitware.com/cgi-bin/mailman/listinfo/midas
>>
>
>
>
> --
> Zach Mullen
> R & D Engineer
> Kitware Inc.
> 919-869-8858
>
> _______________________________________________
> Midas mailing list
> Midas at public.kitware.com
> http://public.kitware.com/cgi-bin/mailman/listinfo/midas
>
>


-- 
Thanks,
Michael Grauer
R & D Engineer
Kitware, Inc.
919 969 6990 x322
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/midas/attachments/20120704/db1ed8ea/attachment.html>


More information about the Midas mailing list