vedo icon indicating copy to clipboard operation
vedo copied to clipboard

Ability to allocate a tmp folder for files to download to

Open JeffreyWardman opened this issue 9 months ago • 3 comments

AWS lambda functions have only /tmp with read-write access. It'd be good to be able to set an env variable called VEDO_CACHE_DIR or similar to allow the user to set where the files should be downloaded to.

JeffreyWardman avatar Mar 20 '25 02:03 JeffreyWardman

That is already implemented in settings.py

import vedo
vedo.settings.cache_directory = "mypath"

marcomusy avatar Mar 20 '25 11:03 marcomusy

I'd like to do this from an environment variable. This doesn't allow for declaring it before the module is running

JeffreyWardman avatar Mar 20 '25 21:03 JeffreyWardman

Hi @JeffreyWardman I just added an env variable VEDO_CACHE_DIR that you can set to control for that. Also a method vedo.settings.clear_cache().

marcomusy avatar Mar 20 '25 21:03 marcomusy