Implement Backwards Compatible FileSplit #6457
I am trying to develop an application that can train using images on an android phone, however the device has API level 22. The FileSplit implementation uses the .toPath() method and Path Object that was only introduced in Android API 26, so when creating a FileSplit the following error occurs. (At least I believe that to be the cause).
Would it possible to create an implementation of FileSplit that is backwards compatible with versions of Android < 26? If not, how would I go about creating an implementation that does support this?
In principle, sure - I think the only place this method is used is for recursively listing of files here:
Changing this should be relatively straightforward - feel free to send us a pull request with a fix - or I'll try to take a look later in the week.