office-gobmx/include/osl
Mike Kaganski c934398820 tdf#119238: keep replaced file's identity when renaming docfile
Regression from 2157a3536f

  sfx2 store: try rename before copying

  Rename is cheaper then copying the content over manually, so try that
  first.

On Windows, we need to keep the file's dentity, including metadata (e.g.,
creation time, which is kept in FS). WinAPI has ReplaceFileW specifically
for this, and it keeps ACLs of the original file, and otherwise makes the
changed file not a separate entry, but updated old file from system's PoV.

Eventually, we could try to restructure creating backup copies (e.g., for
documents when configured so) to take advantage of this function being able
to do that.

Change-Id: I6001a2a3af5e10bc010f5ef129f4bb6f83ee1581
Reviewed-on: https://gerrit.libreoffice.org/60163
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Jenkins
2018-09-27 16:43:48 +02:00
..
detail
test
conditn.h
conditn.hxx
diagnose.h
diagnose.hxx
doublecheckedlocking.h
endian.h
file.h tdf#119238: keep replaced file's identity when renaming docfile 2018-09-27 16:43:48 +02:00
file.hxx tdf#119238: keep replaced file's identity when renaming docfile 2018-09-27 16:43:48 +02:00
getglobalmutex.hxx
interlck.h
module.h
module.hxx
mutex.h
mutex.hxx
nlsupport.h
pipe.h
pipe.hxx sal: avoid -Werror=deprecated-copy (GCC trunk towards GCC 9) 2018-07-27 08:26:07 +02:00
pipe_decl.hxx sal: avoid -Werror=deprecated-copy (GCC trunk towards GCC 9) 2018-07-27 08:26:07 +02:00
process.h
profile.h
profile.hxx
security.h
security.hxx
security_decl.hxx
signal.h
socket.h
socket.hxx sal: avoid -Werror=deprecated-copy (GCC trunk towards GCC 9) 2018-07-27 08:26:07 +02:00
socket_decl.hxx sal: avoid -Werror=deprecated-copy (GCC trunk towards GCC 9) 2018-07-27 08:26:07 +02:00
thread.h
thread.hxx
time.h