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
When I copy files from Pictures to Downloads, the code runs normally.
When I copy folders from Pictures to Downloads (in this case juju), I get an error:
com.hierynomus.mssmb2.SMBApiException: STATUS_OBJECT_NAME_NOT_FOUND (0xc0000034): Create failed for \192.168.86.28\Pictures\juju
at com.hierynomus.smbj.share.Share.receive(Share.java:380)
at com.hierynomus.smbj.share.Share.sendReceive(Share.java:359)
at com.hierynomus.smbj.share.Share.createFile(Share.java:156)
at com.hierynomus.smbj.share.DiskShare.createFileAndResolve(DiskShare.java:75)
at com.hierynomus.smbj.share.DiskShare.access$100(DiskShare.java:55)
at com.hierynomus.smbj.share.DiskShare$2.apply(DiskShare.java:109)
at com.hierynomus.smbj.share.DiskShare$2.apply(DiskShare.java:105)
at com.hierynomus.smbj.paths.PathResolver$1.resolve(PathResolver.java:32)
at com.hierynomus.smbj.paths.SymlinkPathResolver.resolve(SymlinkPathResolver.java:62)
at com.hierynomus.smbj.share.DiskShare.resolveAndCreateFile(DiskShare.java:105)
at com.hierynomus.smbj.share.DiskShare.open(DiskShare.java:65)
at com.hierynomus.smbj.share.DiskShare.openDirectory(DiskShare.java:151)
at com.hierynomus.smbj.share.DiskShare.list(DiskShare.java:258)
at com.hierynomus.smbj.share.DiskShare.list(DiskShare.java:231)
For this part of the code, folderExists(src) always returns false.
Log.d("copyInSameSmb2","diskShare "+diskShare+" src "+src);
if (diskShare.folderExists(src)){ <----returnalwaysfalse !
Log.d("copyInSameSmb2","folder exists");
Stringdest;
if (destDir.equals("") ){
dest = name;
}elsedest = destDir+"\\"+name;
if (diskShare.folderExists(dest)) {
DiskSharediskShare;
if (smbItemSrc.getShared().equals(serviceOperationsHelper.mCurrentSmb2Share)){
diskShare = this.diskShare;
}else {
diskShare = serviceOperationsHelper.diskShare;
}
diskShare.mkdir(dest);
}
for (FileIdBothDirectoryInformationf : diskShare.list(src)) { <-- ifihardcodedfolderExists() totrueSTATUS_OBJECT_NAME_NOT_FOUNDStringfilename = f.getFileName();
if (".".equals(filename) || "..".equals(filename)) {
continue;
}
Stringsrc1 = src+"\\"+filename;
copySmb2InMachine(smbItemSrc,src1,dest,isDir, iFo, cut);
}
}
When copying a file or folder from Users to Pictures or Downloads, the code runs normally.
When copying a file or folder from Pictures or Downloads to Users, the code runs normally.
In summary, the problem only appears when copying a folder from Pictures to Downloads or vice versa.
It should be noted that Downloads and Pictures are child directories of Users.
I can't detect the problem, what about you?
Thanks?
The text was updated successfully, but these errors were encountered:
I have three shared folders on a Windows 11 PC:
Users
Downloads
Pictures
When I copy files from Pictures to Downloads, the code runs normally.
When I copy folders from Pictures to Downloads (in this case juju), I get an error:
For this part of the code, folderExists(src) always returns false.
When copying a file or folder from Users to Pictures or Downloads, the code runs normally.
When copying a file or folder from Pictures or Downloads to Users, the code runs normally.
In summary, the problem only appears when copying a folder from Pictures to Downloads or vice versa.
It should be noted that Downloads and Pictures are child directories of Users.
I can't detect the problem, what about you?
Thanks?
The text was updated successfully, but these errors were encountered: