From 3a9f1f2952a7b8900f71e7879bb2587da3866415 Mon Sep 17 00:00:00 2001 From: kevan Date: Sun, 19 Jul 2009 20:44:47 -0700 Subject: [PATCH] Update webapi docs to reference new PUT behavior. --- docs/frontends/webapi.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/frontends/webapi.txt b/docs/frontends/webapi.txt index 1353f233..6d196756 100644 --- a/docs/frontends/webapi.txt +++ b/docs/frontends/webapi.txt @@ -572,7 +572,10 @@ PUT /uri/$DIRCAP/[SUBDIRS../]CHILDNAME?t=uri there is already an object at the given location, rather than overwriting the existing object. Note that "true", "t", and "1" are all synonyms for "True", and "false", "f", and "0" are synonyms for "False". the parameter is - case-insensitive. + case-insensitive. If you want this behavior only if there is an existing + directory at the same location (that is, you want the operation to return an + error if there is a directory at the same name, but to succeed if there is a + file), add a "replace=only-files" argument, as "?t=uri&replace=only-files". === Deleting a File or Directory === -- 2.45.2