Jump to content
MikeMon

Permanently Delete a File From a Specific Folder on iOS & Android

Recommended Posts

Hi

 

I've added a file to the deployment manager which is being copied to a specific folder on iOS and Android. When the user runs the app for the first time, I'm copying that file to another folder on the device and then deleting the original file. This is the problem: while using the app, the file is being deleted OK. But every time the app is run again, the file is reappearing.

 

How can I permanently delete a file from a specific folder?

 

Kindly advise

Share this post


Link to post

Instead of moving that file, isn't it better to put it to the right place right away and deal with a flag in a DB to know whether it has been initialized or not?

Share this post


Link to post
3 hours ago, sjordi said:

Instead of moving that file, isn't it better to put it to the right place right away and deal with a flag in a DB to know whether it has been initialized or not?

Hi Steve

 

I want to use my approach for files that I want to forcefully overwrite. If I use your approach, I can't overwrite an existing file on the device if it is newer.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×