From fd390bce2106514d51f297107f3c0709e01b59ae Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Tue, 30 Jul 2024 12:46:05 +0100 Subject: [PATCH] remove prepended Copy_ to copied files --- apps/remix-ide/src/app/files/fileManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/remix-ide/src/app/files/fileManager.ts b/apps/remix-ide/src/app/files/fileManager.ts index 2ff2d5a4d3..b069eb6e61 100644 --- a/apps/remix-ide/src/app/files/fileManager.ts +++ b/apps/remix-ide/src/app/files/fileManager.ts @@ -318,7 +318,7 @@ class FileManager extends Plugin { await this._handleExists(dest, `Cannot paste content into ${dest}. Path does not exist.`) await this._handleIsDir(dest, `Cannot paste content into ${dest}. Path is not directory.`) const content = await this.readFile(src) - let copiedFilePath = dest + (customName ? '/' + customName : '/' + `Copy_${helper.extractNameFromKey(src)}`) + let copiedFilePath = dest + (customName ? '/' + customName : '/' + `${helper.extractNameFromKey(src)}`) copiedFilePath = await helper.createNonClashingNameAsync(copiedFilePath, this) await this.writeFile(copiedFilePath, content)