public Delete ( |
||
cmisPath | ||
recursive | bool | |
return | IList |
public IList<string> Delete(CmisPath cmisPath, bool recursive)
{
ICmisObject obj;
if (!TryGet(cmisPath, out obj))
{
// fail otherwise
return new string[] { _curDir.Combine(cmisPath).ToString() };
}
return Delete(obj, recursive);
}
CmisNavigation::Delete ( ICmisObject obj, bool recursive ) : IList |
protected override void ProcessRecord() { var navigation = new CmisNavigation(CmisSession, WorkingFolder); if (Path != null) { foreach (var path in Path) { WriteFailErrors(navigation.Delete(path, Recursive.IsPresent)); } } else { foreach (var obj in Object) { WriteFailErrors(navigation.Delete(obj, Recursive.IsPresent)); } } }