There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
DownloadFile check return value of parent.GetChild(name);
Attempt to download non-existent file via the CloudStorage.DownloadFile method causes NullRefferenceException.
It seems that you should add IF checking whether or not file is null
// get the file entry
ICloudFileSystemEntry file = parent.GetChild(name);
If (file == null) return false; <<<<<< ADD THIS CHECK
// download the data
using (Stream srcdata = file.GetContentStream(FileAccess.Read))