Don't double-slash filenames at the root.
Replace either the end of the dir string that isn't preceded by a slash or the slash at the end of the dir string with a slash and the filename.
This prevents the root directory from ending up as two slashes, which breaks files_versions on Windows servers. See #4079 for an explanation.
chunked files are assembled into a part file on the target storage followed by an atomic rename operation.
adding oc-mtime handling to chunked upload
some logging added ....
log the data arrays
adding storage_mtime handling to SharedCache
cast storage_mtime to int
using array_diff_assoc to detect diffs in values as well
switch instance id and file id
add header 'OC-FileId' on PUT
Append file etag to preview URLs

Fixes #5534
Fixed preview URL + size while dragging an existing file
extend unit test to directories starting or ending in whitespace
Added missing comma to make the next diff cleaner
Excpetion->Exception
Merge pull request #5652 from owncloud/front-port-5647-master

[WIP] extend unit test to directories starting or ending in whitespace
replace template function link_to_docs() with \OC_Helper::linkToDocs()
mssql: fixing lastInsertId() implementation
WIN: fixing Fatal error: Call to a member function logicToPhysical() on a non-object in C:\jenkins2\workspace\server-stable5-windows\database\mssql\label\WINDOWS\lib\files\storage\mappedlocal.php on line 311
WIN: fixing unit test for testStreamCopy()