diff options
author | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2021-01-28 18:34:18 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-02-01 09:37:20 +0100 |
commit | a62878ff86ecb38f9ea9fbe99f06518ed6016566 (patch) | |
tree | 89a2b2b46d7741223f107d12555b61379f3a260c /offapi/com | |
parent | 21312572497e43317faa2f115a2a5449a97f1b44 (diff) |
tdf#60237 - correct the behaviour of the Overwrite property
If the Overwrite property of the MediaDescriptor is set to false, try to
write the file before trying to rename or copy it. If the file already
exists, raise an error (ERRCODE_IO_ALREADYEXISTS). In addition, the
documentation about the default option was corrected.
Change-Id: I1031dca3a039343fc599d194fcaa99a20dd13e2a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110089
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'offapi/com')
-rw-r--r-- | offapi/com/sun/star/document/MediaDescriptor.idl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/offapi/com/sun/star/document/MediaDescriptor.idl b/offapi/com/sun/star/document/MediaDescriptor.idl index 119ed0e4c3fb..73ea2cacba93 100644 --- a/offapi/com/sun/star/document/MediaDescriptor.idl +++ b/offapi/com/sun/star/document/MediaDescriptor.idl @@ -320,8 +320,8 @@ service MediaDescriptor /** overwrite any existing file <p> - For storing only: overwrite any existing file, default is `FALSE`, - so an error occurs if the target file already exists. + For storing only: overwrite any existing file, default is `TRUE`. + Setting this to `FALSE` raises an error, if the target file already exists. </p> */ [optional,property] boolean Overwrite; |