org.eclipse.core.runtime.CoreException: Could not move: C:\gram\zmedia.
at org.eclipse.core.internal.filesystem.Policy.error(Policy.java:55)
at org.eclipse.core.filesystem.provider.FileStore.move(FileStore.java:415)
at org.eclipse.core.internal.filesystem.local.LocalFile.move(LocalFile.java:352)
at com.zmedia.zide.config.model.Service.updateDeploymentSetup(Service.java:923)
at com.zmedia.zide.config.model.Service.update(Service.java:886)
at com.zmedia.zide.util.ServiceAPI.create(ServiceAPI.java:239)
at com.zmedia.zide.ui.wizards.pages.CreateServicePage$5.run(CreateServicePage.java:525)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: org.eclipse.core.runtime.CoreException: Problems encountered while deleting files.
at org.eclipse.core.internal.filesystem.local.LocalFile.delete(LocalFile.java:125)
at org.eclipse.core.filesystem.provider.FileStore.move(FileStore.java:411)
... 6 more
Hi All ,
We developed a plugin on top of eclipse . We gave a option for users to remove their old projects in eclipse .
Issue :
If a file is opened on this directory or any process using their directory on delete operation will be the problem . This issue is specific for only windows users .
Is there any way to force delete a directory on windows?
How can I notify to users like this “This process is using our directory . Please close this process and proceed” .
Is there any way to know which process is accessing this?
You can use Unlocker, it has a portable version and commandline options (depending on its license) you may be able to ship it with your plugin and use it via commandline to unlock the used files.