[F] Fix upload paths

This commit is contained in:
Azalea
2024-03-06 00:16:53 -05:00
parent ef00cfbddd
commit 38367279ff
2 changed files with 9 additions and 5 deletions

View File

@@ -79,4 +79,4 @@ suspend fun <T> async(block: suspend kotlinx.coroutines.CoroutineScope.() -> T):
fun path(part1: Str, vararg parts: Str) = Path.of(part1, *parts)
fun Str.path() = Path.of(this)
operator fun Path.div(part: Str) = resolve(part)
fun Str.ensureEndingSlash() = if (endsWith('/')) this else "$this/"