@Override
    public List<ContentStorage.FileInformation> list(@NonNull final Folder folder) throws IOException {
        try {
            return listInternal(folder, false);
        } catch (IllegalArgumentException iae) {
            try {
                return listInternal(folder, true);
            } catch (IllegalArgumentException iae2) {
                Log.d("Exception while trying to list '" + folder + "'", iae2);
                return Collections.emptyList();
            }
        }
    }
method tested on SDK21, 23, 29 and 30; both with targetSDK=29 and targetSDk=30
main/src/main/java/cgeo/geocaching/storage/DocumentContentAccessor.java