clarify EXPORT

This commit is contained in:
Joey Hess 2023-03-28 15:17:56 -04:00
parent c1d698f1f2
commit 390ed554e8
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -33,14 +33,14 @@ a request, it can reply with `UNSUPPORTED-REQUEST`.
* `EXPORTSUPPORTED-FAILURE` * `EXPORTSUPPORTED-FAILURE`
Indicates that it does not make sense to export to this special remote. Indicates that it does not make sense to export to this special remote.
* `EXPORT Name` * `EXPORT Name`
Comes immediately before each of the following requests, Comes immediately before each of the following requests (except for
specifying the name of the exported file. It will be in the form `REMOVEEXPORTDIRECTORY`), specifying the name of the exported file. It
of a relative path, and may contain path separators, whitespace, will be in the form of a relative path, and may contain path separators,
and other special characters. whitespace, and other special characters.
No response is made to this message. No response is made to this message.
* `TRANSFEREXPORT STORE|RETRIEVE Key File` * `TRANSFEREXPORT STORE|RETRIEVE Key File`
Requests the transfer of a File on local disk to or from the previously Requests the transfer of a File on local disk to or from the previously
provided Name on the special remote. provided `EXPORT` Name on the special remote.
Note that it's important that, while a file is being stored, Note that it's important that, while a file is being stored,
`CHECKPRESENTEXPORT` not indicate it's present until all the data has `CHECKPRESENTEXPORT` not indicate it's present until all the data has
been transferred. been transferred.
@ -52,7 +52,7 @@ a request, it can reply with `UNSUPPORTED-REQUEST`.
* `TRANSFER-FAILURE STORE|RETRIEVE Key ErrorMsg` * `TRANSFER-FAILURE STORE|RETRIEVE Key ErrorMsg`
Indicates the transfer failed. Indicates the transfer failed.
* `CHECKPRESENTEXPORT Key` * `CHECKPRESENTEXPORT Key`
Requests the remote to check if the previously provided Name is present Requests the remote to check if the previously provided `EXPORT` Name is present
in it. in it.
* `CHECKPRESENT-SUCCESS Key` * `CHECKPRESENT-SUCCESS Key`
Indicates that a content has been positively verified to be present in the Indicates that a content has been positively verified to be present in the
@ -65,7 +65,7 @@ a request, it can reply with `UNSUPPORTED-REQUEST`.
present in the remote. (Perhaps the remote cannot be contacted.) present in the remote. (Perhaps the remote cannot be contacted.)
* `REMOVEEXPORT Key` * `REMOVEEXPORT Key`
Requests the remote to remove content stored by `TRANSFEREXPORT` Requests the remote to remove content stored by `TRANSFEREXPORT`
with the previously provided Name. with the previously provided `EXPORT` Name.
* `REMOVE-SUCCESS Key` * `REMOVE-SUCCESS Key`
Indicates the content has been removed from the remote. May be returned when Indicates the content has been removed from the remote. May be returned when
the content was already not present. the content was already not present.
@ -87,7 +87,7 @@ a request, it can reply with `UNSUPPORTED-REQUEST`.
Should not be returned if the directory did not exist. Should not be returned if the directory did not exist.
* `RENAMEEXPORT Key NewName` * `RENAMEEXPORT Key NewName`
Requests the remote rename a file stored on it from the previously Requests the remote rename a file stored on it from the previously
provided Name to the NewName. Remotes that support exports but not provided `EXPORT` Name to the NewName. Remotes that support exports but not
renaming do not need to implement this. renaming do not need to implement this.
* `RENAMEEXPORT-SUCCESS Key` * `RENAMEEXPORT-SUCCESS Key`
Indicates that a `RENAMEEXPORT` was done successfully. Indicates that a `RENAMEEXPORT` was done successfully.