From a8aa6aa88f0b1daf808e787f9a319e102d48cb05 Mon Sep 17 00:00:00 2001 From: Bailey Berro Date: Mon, 12 Feb 2018 09:41:39 -0800 Subject: smbprovider: Add MoveEntry protobuf Adds MoveEntry protobuf used for passing inputs to MoveEntry as well as the method name definition. BUG=chromium:757625 TEST=emerges Change-Id: I9e9eaf0564929aaffd265c36671ecaf052b17a62 Reviewed-on: https://chromium-review.googlesource.com/913721 Commit-Ready: Bailey Berro Tested-by: Bailey Berro Reviewed-by: Zentaro Kavanagh --- dbus/smbprovider/directory_entry.proto | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'dbus/smbprovider/directory_entry.proto') diff --git a/dbus/smbprovider/directory_entry.proto b/dbus/smbprovider/directory_entry.proto index 168390f..0403139 100644 --- a/dbus/smbprovider/directory_entry.proto +++ b/dbus/smbprovider/directory_entry.proto @@ -165,4 +165,17 @@ message CreateDirectoryOptionsProto { // Boolean indicating whether the create should be recursive, meaning the // parent directories will also be created if they currently don't exist. optional bool recursive = 3; +} + +// Used for passing inputs into SmbProvider.MoveEntry(). +message MoveEntryOptionsProto { + // ID of the mount returned from Mount(). + optional int32 mount_id = 1; + // Source path of the entry to be moved. This can be a file or directory path. + // Paths are relative to the mount root. (e.g. "/testfolder/dog.jpg") + optional string source_path = 2; + // Destination path for the entry to be moved to. This must be a non-existant + // file or directory path. Paths are relative to the mount + // root. (e.g. "/testfolder/dog.jpg") + optional string target_path = 3; } \ No newline at end of file -- cgit v1.2.3