CmisCmdlets.SetCmisWorkingFolderCommand.EndProcessing C# (CSharp) Method

EndProcessing() protected method

protected EndProcessing ( ) : void
return void
        protected override void EndProcessing()
        {
            //make sure it exists
            var newPath = WorkingFolder.Combine(Path);
            try
            {
                new CmisNavigation(CmisSession).GetFolder(newPath);
            }
            catch (CmisBaseException ex)
            {
                ThrowTerminatingError(new ErrorRecord(ex, "InvalidCmisDirectory",
                                                      ErrorCategory.ObjectNotFound, newPath));
            }

            SetWorkingFolder(newPath);
            WriteObject(newPath.ToString());
        }
    }
SetCmisWorkingFolderCommand