From 89ffd0eca9d6b256ac4b81411a6ea2b134e22249 Mon Sep 17 00:00:00 2001 From: Hunter Perrin Date: Mon, 23 Dec 2024 17:43:57 -0800 Subject: [PATCH] fix: depth infinity copies of a collection Fixes #9 --- packages/nephele/src/Methods/COPY.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nephele/src/Methods/COPY.ts b/packages/nephele/src/Methods/COPY.ts index 5d5b7bd..88eabaf 100644 --- a/packages/nephele/src/Methods/COPY.ts +++ b/packages/nephele/src/Methods/COPY.ts @@ -316,7 +316,7 @@ export class COPY extends Method { destination.toString().replace(/\/?$/, () => '/') + encodeURIComponent(name) + ((await child.isCollection()) ? '/' : ''), - `${destination.protocol}://${destination.host}`, + `${destination.protocol}//${destination.host}`, ); await recursivelyCopy(child, destinationUrl, false);