for(file of files)
{
    if(file.suffix() == "fits" || file.suffix() == "fit" || file.suffix() == "xisf")
    {
        let stats = file.stats();
        core.log("File: \"" + file.fileName() + "\" - median: " + stats.median);
    }
}
