diff options
Diffstat (limited to 'src/main/kotlin/cc')
-rw-r--r-- | src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/IOUtilsDSL.kt | 12 | ||||
-rw-r--r-- | src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/NetworkUtilsDSL.kt | 7 |
2 files changed, 12 insertions, 7 deletions
diff --git a/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/IOUtilsDSL.kt b/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/IOUtilsDSL.kt new file mode 100644 index 0000000..6b89fe6 --- /dev/null +++ b/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/IOUtilsDSL.kt @@ -0,0 +1,12 @@ +package cc.polyfrost.oneconfig.utils.dsl + +import cc.polyfrost.oneconfig.utils.IOUtils +import cc.polyfrost.oneconfig.utils.NetworkUtils +import java.io.File + +/** + * Returns the SHA-256 hash of the given [File]. + * + * @see NetworkUtils.getFileChecksum + */ +fun File.checksum() = IOUtils.getFileChecksum(this)
\ No newline at end of file diff --git a/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/NetworkUtilsDSL.kt b/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/NetworkUtilsDSL.kt index 56fba21..a744a29 100644 --- a/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/NetworkUtilsDSL.kt +++ b/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/NetworkUtilsDSL.kt @@ -31,13 +31,6 @@ import cc.polyfrost.oneconfig.libs.universal.UDesktop import java.io.File /** - * Returns the SHA-256 hash of the given [File]. - * - * @see NetworkUtils.getFileChecksum - */ -fun File.checksum() = NetworkUtils.getFileChecksum(this) - -/** * Downloads the given [url] to the given [File]. * * @see NetworkUtils.downloadFile |