@DeepDiver1975 
I only moved that piece of code from one method to another method, the path were formed in that way before the patch i made, so if you want i can modify it, but i don't know why you prefer to call getHome() instead getSystemValue('datadirectory') and what is the problem that can cause?

For example: 
getHome() get "/home/test/owncloud/data/"
getSystemValue('datadirectory') get "/home/test/owncloud/data"
getAbsolutePath("") get "/admin/files_external/" 

Thanks