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. at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:503) at jcifs.smb.SmbTransport.send(SmbTransport.java:603) at jcifs.smb.SmbSession.send(SmbSession.java:229) at jcifs.smb.SmbTree.send(SmbTree.java:102) at jcifs.smb.SmbFile.send(SmbFile.java:688) at jcifs.smb.SmbFile.delete(SmbFile.java:2115) at jcifs.smb.SmbFile.delete(SmbFile.java:2059) 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