private File toFile(@NonNull final Folder folder, final boolean needsWrite) {
        if (!ensureFolder(folder, needsWrite)) {
            return null;
        }
        return new File(folderToUri(folder).getPath());
    }
Must return null if file does not yet exist
main/src/main/java/cgeo/geocaching/storage/FileContentAccessor.java