package usda.weru.util;

import de.schlichtherle.truezip.file.TFile;
import java.util.ArrayList;

/**
 * This is a dummy class so that we can pass a run directory around to a
 * Diff
 * @author Jonathan
 */
public class RunDirectory {
    
    TFile file;
    
    public  RunDirectory(TFile inputFile)
    {
        file = inputFile;
    }
    
    public TFile[] getFiles()
    {
        String[] myFiles = new TFile(file).list();
        if(myFiles == null) return new TFile[0];
        TFile[] temp = new TFile[myFiles.length];
        for(int index = 0; index < myFiles.length; index ++)
        {
            String fileA = file.getAbsolutePath() + TFile.separator + myFiles[index];
            temp[index] = (new TFile(fileA));
        }
        return temp;
    }
    
    public String getName()
    {
        return file.getName();
    }
    
}
