aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dbus/smbprovider/dbus-constants.h1
-rw-r--r--dbus/smbprovider/directory_entry.proto15
2 files changed, 15 insertions, 1 deletions
diff --git a/dbus/smbprovider/dbus-constants.h b/dbus/smbprovider/dbus-constants.h
index 49c8cbf..5f9f02e 100644
--- a/dbus/smbprovider/dbus-constants.h
+++ b/dbus/smbprovider/dbus-constants.h
@@ -26,6 +26,7 @@ const char kTruncateMethod[] = "Truncate";
const char kWriteFileMethod[] = "WriteFile";
const char kCreateDirectoryMethod[] = "CreateDirectory";
const char kMoveEntryMethod[] = "MoveEntry";
+const char kCopyEntryMethod[] = "CopyEntry";
} // namespace smbprovider
diff --git a/dbus/smbprovider/directory_entry.proto b/dbus/smbprovider/directory_entry.proto
index 0403139..ea52b30 100644
--- a/dbus/smbprovider/directory_entry.proto
+++ b/dbus/smbprovider/directory_entry.proto
@@ -174,8 +174,21 @@ message MoveEntryOptionsProto {
// 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
+ // Destination path for the entry to be moved to. This must be a non-existent
// file or directory path. Paths are relative to the mount
// root. (e.g. "/testfolder/dog.jpg")
optional string target_path = 3;
+}
+
+// Used for passing inputs into SmbProvider.CopyEntry().
+message CopyEntryOptionsProto {
+ // ID of the mount returned from Mount().
+ optional int32 mount_id = 1;
+ // Source path of the entry to be copied. 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 copied to. This must be a non-existent
+ // 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