Locking Files
Posted: Thu Oct 01, 2020 11:10 am
I am running into more and more of an issue with file sharing services corrupting files I write to using the database commands.
This is happening on Windows and Mac, basically I open the DB file, write and then close it, I don't leave it open. But sometimes when the database is opened again the system gets a revdberr malformed and when the user sends me a backup of their data files the database is corrupt. In evey case they are using some form of file backup sync, dropbox etc.
Is there a way in livecode to lock a file so these file sync services leave it alone until the file is unlocked or the app is closed etc?
This is happening on Windows and Mac, basically I open the DB file, write and then close it, I don't leave it open. But sometimes when the database is opened again the system gets a revdberr malformed and when the user sends me a backup of their data files the database is corrupt. In evey case they are using some form of file backup sync, dropbox etc.
Is there a way in livecode to lock a file so these file sync services leave it alone until the file is unlocked or the app is closed etc?