CmisSync.Lib.Database.Database.GetFolderSyncItemFromRemotePath C# (CSharp) Метод

GetFolderSyncItemFromRemotePath() публичный Метод

Gets the syncitem from remote path.
public GetFolderSyncItemFromRemotePath ( string remotePath ) : SyncItem
remotePath string Remote path.
Результат SyncItem
        public SyncItem GetFolderSyncItemFromRemotePath(string remotePath)
        {
            if (remotePath.Equals(remotePathPrefix))
            {
                return SyncItemFactory.CreateFromPaths(localPathPrefix, localPathPrefix, remotePathPrefix, remotePathPrefix, true);
            }

            string normalizedRemotePath = RemoveRemotePrefix(remotePath);
            Dictionary<string, object> parameters = new Dictionary<string, object>();
            parameters.Add("path", normalizedRemotePath);
            string localPath = (string)ExecuteSQLFunction("SELECT localPath FROM folders WHERE path=@path", parameters);
            if (string.IsNullOrEmpty(localPath))
            {
                return null;
            }

            return SyncItemFactory.CreateFromPaths(localPathPrefix, localPath, remotePathPrefix, normalizedRemotePath, true);
        }