CmisSync.Lib.Accumulator.RemoteObjectFetcher.FetchIdFromStorage C# (CSharp) Method

FetchIdFromStorage() private method

private FetchIdFromStorage ( ISyncEvent e ) : string
e ISyncEvent
return string
        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;
        }