private string FetchIdFromStorage(ISyncEvent e) {
IFileSystemInfo path = null;
if (e is FileEvent) {
path = (e as FileEvent).LocalFile;
} else if (e is FolderEvent) {
path = (e as FolderEvent).LocalFolder;
}
if (path != null) {
IMappedObject savedObject = this.storage.GetObjectByLocalPath(path);
if (savedObject != null) {
return savedObject.RemoteObjectId;
}
}
return null;
}