Nextcloud already implemented this feature for the next major release. In owncloud it is still an open feature request. Due to dual-licensing, you can't just port the solutions to owncloud (the other way round is possible). I'm not sure how different the approaches have to be that you don't violate the license (if you look at the fix, it is not too complicated).