
com.karumi.shot.Files.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Gradle plugin developed to facilitate screenshot testing for Android.
The newest version!
package com.karumi.shot
import java.io.File
import com.karumi.shot.domain.model.FilePath
import org.apache.commons.io.FileUtils
import scala.io.Source
class Files {
def rename(origin: FilePath, target: FilePath): Unit =
FileUtils.moveFile(new File(origin), new File(target))
def read(filePath: FilePath): String =
Source.fromFile(filePath, "UTF8").getLines.mkString
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy