datamaintain.core.util.PorcelainUtil.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datamaintain-core Show documentation
Show all versions of datamaintain-core Show documentation
One tool to maintain all your database schemas!
package datamaintain.core.util
import java.nio.file.Path
fun extractRelativePath(scanPath: Path, filePath: Path): String =
filePath.toString().removePrefix(scanPath.toString()).trim('/')