public bool GetFile(string pathname, Stream output) {
if (this.session == null) {
return false;
}
try {
IDocument doc = this.session.GetObjectByPath(pathname) as IDocument;
if (doc == null) {
return false;
}
DotCMIS.Data.IContentStream contentStream = doc.GetContentStream();
if (contentStream == null) {
return false;
}
contentStream.Stream.CopyTo(output);
return true;
} catch (Exception e) {
Logger.Debug(e.Message);
return false;
}
}