You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a bug in com.hierynomus.smbj.utils.SmbFiles mkdirs which always causes SMBApiException: STATUS_OBJECT_NAME_COLLISION. This method is supposed to check if a folder and its parents exist and create them otherwise. But it will try to create an already existing directory.
public void mkdirs(DiskShare diskShare, SmbPath path) throws SMBApiException {
if (!diskShare.folderExists(path.getPath())) {
// Ensure the parent path exists
mkdirs(diskShare, path.getParent());
}
diskShare.mkdir(path.getPath());
}
This should be correct:
public void mkdirs(DiskShare diskShare, SmbPath path) throws SMBApiException {
if (!diskShare.folderExists(path.getPath())) {
// Ensure the parent path exists
mkdirs(diskShare, path.getParent());
diskShare.mkdir(path.getPath());
}
}
There is a bug in com.hierynomus.smbj.utils.SmbFiles mkdirs which always causes SMBApiException: STATUS_OBJECT_NAME_COLLISION. This method is supposed to check if a folder and its parents exist and create them otherwise. But it will try to create an already existing directory.
This should be correct:
The error was apparently introduced in this change:
5cf73b2#diff-dd81c4aafc6bf89377f022a5f6f2e7f471e39d82054313db1a7e91325cbea733
The text was updated successfully, but these errors were encountered: