I have to move a SMB file from one location to another. The SMB file could be a file or directory. I used copyTo method to copy SMB file from one location to another location. After the copy is done, I would like to delete the source file or directory. When I attempt to delete the source file, I get SMBException. The exception is pasted below. However, I could delete the destination file without any problem.
Caused by: jcifs.smb.SmbException: The process cannot access the file because it is being used by another process.
I think this is a bug. If I am doing something wrong, please let me know. If you need more information, please let me know.
Reassigning since current assignee mail addr is bouncing