package com.avg.zaap.crashlibrary.offline.publisher;

import com.avg.zaap.crashlibrary.publish.packer.IBinPacker;

import java.io.File;
import java.io.FilenameFilter;

/**
 * This class serves as the filename filter that accepts only crash report files (no metadata).
 * <p/>
 * Created by marek.osvald on 29.7.2016.
 */
public class OfflineReportFilenameFilter implements FilenameFilter {

    @Override
    public boolean accept(File dir, String filename) {
        return filename.endsWith(IBinPacker.EXT_RESULT);
    }

}
