is there anyway to lock the directory in QDir

March 21, 2011 at 01:14:39
Specs: Windows XP
In my application , I am using the directories with QDir..Once my work is done i would like to delete those directories.I am using command prompt for my test. If I want to delete the folder with the command prompt opened I am unable to delete. If I close the command prompt It is getting deleted. This should not happen for me

See More: is there anyway to lock the directory in QDir

Report •

#1
March 21, 2011 at 04:45:02
You can't delete an object that is open,

Report •

#2
March 21, 2011 at 05:14:14
But for my project, I need to delete the folder when my command prompt is open.
My doubt is, I have used the following code to create the directory. Will it make the lock to that particular folder.
I suspect that there is some lock for that given directory
Code:
QDir q_directory_path(directory_path);

Report •
Related Solutions


Ask Question