Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

unexpected naming a copied file #397

Closed

Description

@izuzak

From @kirrie on March 5, 2015 1:12

in the tree menu on left window, i copied a file with ctrl + c / ctrl + v.

a.js -> a0.js is ok.
but, a.b.js -> a0.b is not what i expected. i expected 'a.b0.js'.

i'm using 0.186.0 version of atom.

Copied from original issue: atom/atom#5848

Activity

  1. izuzak commented on Mar 5, 2015

    @izuzak
    ContributorAuthor

    From @50Wliu on March 5, 2015 1:38

    Confirmed.

  2. izuzak commented on Mar 5, 2015

    @izuzak
    ContributorAuthor

    Related to

    while fs.existsSync(newPath)
    if initialPathIsDirectory
    newPath = "#{originalNewPath}#{fileCounter.toString()}"
    else
    fileArr = originalNewPath.split('.')
    newPath = "#{fileArr[0]}#{fileCounter.toString()}.#{fileArr[1]}"
    fileCounter += 1
    , I believe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions