Beispiel #1
0
    // Pfm.FormatterDispatch.Delete
    public void Delete(Pfm.MarshallerDeleteOp op)
    {
        long   openId       = op.OpenId();
        long   parentFileId = op.ParentFileId();
        string endName      = op.EndName();
        long   writeTime    = op.WriteTime();
        int    perr;
        File   file;
        File   parent;

        perr = FileFindOpenId(openId, out file);
        if (perr == 0)
        {
            perr = FileFindFileId(parentFileId, out parent);
            if (perr == 0)
            {
                FileNameRemove(parent, writeTime, endName, file);
            }
        }

        op.Complete(perr);
    }
Beispiel #2
0
 public void Delete(Pfm.MarshallerDeleteOp op)
 {
     op.Complete(Pfm.errorAccessDenied);
 }