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

Ability to delete cached image. #196

Open
Normalnick12 opened this issue Feb 22, 2022 · 1 comment
Open

Ability to delete cached image. #196

Normalnick12 opened this issue Feb 22, 2022 · 1 comment

Comments

@Normalnick12
Copy link

Hi @zetbaitsu! Thank you for library.
My question is how can we safely remove the cached file from the compressor folder? For example, I get images from outside, create a new file with name compressedImage , and set destination(imageFile) as the property, my newly created file is successfully replaced with the compressed one. But now we have 2 identical files in different folders. Would like to be able to properly delete a file coming along the path - "${context.cacheDir.path}${separator}compressor$separator".

@wangzai0904
Copy link

Hi @zetbaitsu! Thank you for library. My question is how can we safely remove the cached file from the compressor folder? For example, I get images from outside, create a new file with name compressedImage , and set destination(imageFile) as the property, my newly created file is successfully replaced with the compressed one. But now we have 2 identical files in different folders. Would like to be able to properly delete a file coming along the path - "${context.cacheDir.path}${separator}compressor$separator".

You can manually delete all files in the compress directory located under the app's cache directory

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

2 participants