protected DiskEntry getDiskEntry(String path, SMB2CreateResponseContext responseContext) { SMB2CreateResponse response = responseContext.resp; if (response.getFileAttributes().contains(FILE_ATTRIBUTE_DIRECTORY)) { return new Directory(response.getFileId(), responseContext.share, responseContext.target.toUncPath()); } else { return new File(response.getFileId(), responseContext.share, responseContext.target.toUncPath()); } }
protected DiskEntry getDiskEntry(String path, SMB2CreateResponseContext responseContext) { SMB2CreateResponse response = responseContext.resp; if (response.getFileAttributes().contains(FILE_ATTRIBUTE_DIRECTORY)) { return new Directory(response.getFileId(), responseContext.share, responseContext.target.toUncPath()); } else { return new File(response.getFileId(), responseContext.share, responseContext.target.toUncPath()); } }