extend unit test to directories starting or ending in whitespace
Merge pull request #5652 from owncloud/front-port-5647-master

[WIP] extend unit test to directories starting or ending in whitespace