From a9141694a4231048543f3995e6c78db13068a466 Mon Sep 17 00:00:00 2001 From: Harry Hartley Date: Fri, 1 Mar 2024 13:25:39 +0000 Subject: [PATCH] add moved state and method --- files/client.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/files/client.go b/files/client.go index 101fbd3b..b1a0781c 100644 --- a/files/client.go +++ b/files/client.go @@ -180,6 +180,12 @@ func (c *Client) MarkFileDecrypted(ctx context.Context, path string, etag string ETag: etag, }) } +func (c *Client) MarkFileMoved(ctx context.Context, path string, etag string) error { + return c.PatchFile(ctx, path, FilePatch{ + State: "MOVED", + ETag: etag, + }) +} func (c *Client) MarkFilePublished(ctx context.Context, path string, etag string) error { return c.PatchFile(ctx, path, FilePatch{ State: "PUBLISHED",