use of com.hierynomus.smbj.share.Directory in project iaf by ibissource.
the class Samba2FileSystem method getFolder.
private Directory getFolder(String filename, AccessMask accessMask, SMB2CreateDisposition createDisposition) {
Set<SMB2ShareAccess> shareAccess = new HashSet<SMB2ShareAccess>();
shareAccess.addAll(SMB2ShareAccess.ALL);
Set<AccessMask> accessMaskSet = new HashSet<AccessMask>();
accessMaskSet.add(accessMask);
Directory file;
file = diskShare.openDirectory(filename, accessMaskSet, null, shareAccess, createDisposition, null);
return file;
}
use of com.hierynomus.smbj.share.Directory in project iaf by ibissource.
the class Samba2FileSystemTestHelper method getFolder.
private Directory getFolder(String filename, AccessMask accessMask, SMB2CreateDisposition createDisposition) {
Set<SMB2ShareAccess> shareAccess = new HashSet<SMB2ShareAccess>();
shareAccess.addAll(SMB2ShareAccess.ALL);
Set<AccessMask> accessMaskSet = new HashSet<AccessMask>();
accessMaskSet.add(accessMask);
Directory file;
file = diskShare.openDirectory(filename, accessMaskSet, null, shareAccess, createDisposition, null);
return file;
}
Aggregations