Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support changing cache directory #44

Open
ghost opened this issue Jul 10, 2023 · 0 comments
Open

Support changing cache directory #44

ghost opened this issue Jul 10, 2023 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 10, 2023

Hi, guys.

Thank you for maintaining this awesome package!

I tried to use this package in an environment that it doesn't have write access to home directory ( Lambda function on Localstack), and got this error.

"ENOENT: no such file or directory, mkdir '/home/sbx_user1051/.ffbinaries-cache'

I have write access to /tmp directory, so changed LOCAL_CACHE_DIR manually then it worked.

Can it support changing cache directory officially?

for example, like

import { setCacheDir, downloadBinaries } from 'ffbinaries'

setCacheDir('/tmp/.ffbinaries')
downloadBinaries(["ffmpeg"])

Or, just for my usecase, it is enough to set through environment variables like FFBINARIES_CACHE_DIR="/tmp/.ffbinaries".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants