remove prepended Copy_ to copied files

pull/5062/head
Joseph Izang 4 months ago committed by Aniket
parent 17df4d3cc5
commit 3883c89b6f
  1. 2
      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)

Loading…
Cancel
Save