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.

Copying and pasting a file with no extension adds 'undefined' extension. #648

Closed

Description

@Mr-Wallet

Normally when copy-pasting fileName.txt, we see this pattern:

fileName.txt
fileName0.txt
fileName1.txt
...

If the file being copied has no extension, it instead creates files with a new extension:

fileName
fileName0.undefined
fileName1.undefined
...

Activity

  1. winstliu commented on Nov 13, 2015

    @winstliu
    Contributor

    What Atom version is this, and what OS?

  2. Mr-Wallet commented on Nov 13, 2015

    @Mr-Wallet
    Author

    Oops, sorry! This is 1.2.0 on Windows 8.

  3. winstliu commented on Nov 13, 2015

    @winstliu
    Contributor

    Couldn't reproduce this myself (because of a different bug), but the issue seems to be here:

    fileArr = originalNewPath.split('.')
    newPath = "#{fileArr[0]}#{fileCounter.toString()}.#{fileArr[1]}"

    When fileArr[1] is undefined (aka no extension), it'll print out...undefined.

  4. self-assigned this
    on Nov 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions