improve docs about removeExportDirectory
This commit is contained in:
parent
8960f259b8
commit
c1ed0293b0
3 changed files with 7 additions and 3 deletions
|
@ -81,6 +81,8 @@ gen r u c gc = do
|
||||||
, retrieveExportWithContentIdentifier = retrieveExportWithContentIdentifierM dir
|
, retrieveExportWithContentIdentifier = retrieveExportWithContentIdentifierM dir
|
||||||
, storeExportWithContentIdentifier = storeExportWithContentIdentifierM dir
|
, storeExportWithContentIdentifier = storeExportWithContentIdentifierM dir
|
||||||
, removeExportWithContentIdentifier = removeExportWithContentIdentifierM dir
|
, removeExportWithContentIdentifier = removeExportWithContentIdentifierM dir
|
||||||
|
-- Not needed because removeExportWithContentIdentifier
|
||||||
|
-- auto-removes empty directories.
|
||||||
, removeExportDirectoryWhenEmpty = Nothing
|
, removeExportDirectoryWhenEmpty = Nothing
|
||||||
, checkPresentExportWithContentIdentifier = checkPresentExportWithContentIdentifierM dir
|
, checkPresentExportWithContentIdentifier = checkPresentExportWithContentIdentifierM dir
|
||||||
}
|
}
|
||||||
|
|
|
@ -198,8 +198,8 @@ replying with `UNSUPPORTED-REQUEST` is acceptable.
|
||||||
respond with `REMOVE-SUCCESS`.
|
respond with `REMOVE-SUCCESS`.
|
||||||
* `REMOVEEXPORTDIRECTORY Directory`
|
* `REMOVEEXPORTDIRECTORY Directory`
|
||||||
Requests the remote remove an exported directory.
|
Requests the remote remove an exported directory.
|
||||||
If the remote does not use directories, or automatically cleans up
|
If the remote does not use directories, or REMOVEEXPORT cleans up
|
||||||
empty directories, this does not need to be implemented.
|
directories that are empty, this does not need to be implemented.
|
||||||
The directory will be in the form of a relative path, and may contain path
|
The directory will be in the form of a relative path, and may contain path
|
||||||
separators, whitespace, and other special characters.
|
separators, whitespace, and other special characters.
|
||||||
Typically the directory will be empty, but it could possibly contain
|
Typically the directory will be empty, but it could possibly contain
|
||||||
|
|
|
@ -281,7 +281,9 @@ the race.
|
||||||
|
|
||||||
removeExportDirectoryWhenEmpty is used instead of removeExportDirectory.
|
removeExportDirectoryWhenEmpty is used instead of removeExportDirectory.
|
||||||
It should only remove empty directories, and succeeds if there are files
|
It should only remove empty directories, and succeeds if there are files
|
||||||
in the directory.
|
in the directory. This is needed because removeExportDirectory removes
|
||||||
|
non-empty directories, but when importing the stuff in those directories is
|
||||||
|
stuff that ought to be imported.
|
||||||
|
|
||||||
checkPresentExportWithContentIdentifier is used instead of
|
checkPresentExportWithContentIdentifier is used instead of
|
||||||
checkPresentExport. It should verify that one of the provided
|
checkPresentExport. It should verify that one of the provided
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue