Os.remove os.unlink

Since 9 days, I have an error with this line:

Tag Diagnotics says :
OSError: unlink(): an unknown error occured D:\UTWIN-02-10-21-LOG.txt

But it worked for months. I don’t understand.


I have a similar issue…

I’m attempting the removal of a directory with rmtree on a mapped drive.

The Zulu Java Platform releases the object lock only part of the time, but periodically it does not…and this causes the problem. If some time (several minutes) is allowed to pass, the lock seems to release the link on the object in question…and the object can be deleted. It is not consistent…works for a while, then doesn’t. …possibly an issue with garbage collection??

I’ve chased this issue with SysInternals Process Explorer…I can find the process locks that are connected to the objects that are causing issue. Deleting the process locks to the specific objects allows the deletion of the tree, but for some reason the process locks aren’t always detected in Process Explorer.

…and it doesn’t facilitate the expected normal operation of the system.

Did you find a resolution to the posted issue?

Many Thanks,

Use java’s java.io.File functionality instead of jython’s standard library.