From a62878ff86ecb38f9ea9fbe99f06518ed6016566 Mon Sep 17 00:00:00 2001 From: Andreas Heinisch Date: Thu, 28 Jan 2021 18:34:18 +0100 Subject: 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 --- offapi/com/sun/star/document/MediaDescriptor.idl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'offapi/com') 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

- 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.

*/ [optional,property] boolean Overwrite; -- cgit