File operation
Unsolved
General and Desktop
-
I am opening a file for writing using
QFile file(FILEPATH)
file.open(QFile.ReadWrite)The file operation is working fine. But, it does not disallow user to delete the file while writing operation is in progress.
I need to make sure if file is open for writing by my program then no user can manually delete it or cannot delete the directory where the gile is present.
This task is being performed in linux qt 4.8 -
@Ashwinimehra
Hi and welcome
Its outside the scope of Qt but linux does support it
http://www.thegeekstuff.com/2012/04/linux-file-locking-types/