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.

Uncaught Error: EPERM: operation not permitted, rename 'A' -> 'B' #436

Closed

Description

@jmm

[Enter steps to reproduce below:]

  1. Created subdir in tree view
  2. Cut file (a directory) in tree view
  3. Paste in subdir in tree view.

\\server.\share is a samba share running on linux.

I had to use the shell to move the directory.

Atom Version: 0.194.0
System: Microsoft Windows 7 Home Premium
Thrown From: tree-view package, v0.170.0

Stack Trace

Uncaught Error: EPERM: operation not permitted, rename '\server.\share\somedir\file' -> '\server.\share\somedir\subdir\file'

At fs.js:680

Error: EPERM: operation not permitted, rename '\\server.\share\somedir\file' -> '\\server.\share\somedir\subdir\file'
    at Error (native)
    at Object.fs.renameSync (fs.js:680:18)
    at Object.fsPlus.moveSync (C:\Program Files (x86)\GitHub Atom\resources\app.asar\node_modules\fs-plus\lib\fs-plus.js:230:17)
    at TreeView.module.exports.TreeView.pasteEntries (C:\Program Files (x86)\GitHub Atom\resources\app.asar\node_modules\tree-view\lib\tree-view.js:969:32)
    at space-pen-div.atom.commands.add.tree-view:paste (C:\Program Files (x86)\GitHub Atom\resources\app.asar\node_modules\tree-view\lib\tree-view.js:277:26)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Program Files (x86)\GitHub Atom\resources\app.asar\src\command-registry.js:238:29)
    at CommandRegistry.handleCommandEvent (C:\Program Files (x86)\GitHub Atom\resources\app.asar\src\command-registry.js:3:61)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (C:\Program Files (x86)\GitHub Atom\resources\app.asar\src\command-registry.js:153:19)
    at jQuery.fn.trigger (C:\Program Files (x86)\GitHub Atom\resources\app.asar\src\space-pen-extensions.js:64:23)
    at EventEmitter.<anonymous> (C:\Program Files (x86)\GitHub Atom\resources\app.asar\src\window-event-handler.js:76:67)

Commands

     -6:21.9.0 core:move-up (atom-text-editor.editor)
  3x -6:19.6.0 core:page-down (atom-text-editor.editor)
     -6:16.9.0 core:page-up (atom-text-editor.editor)
 32x -6:15.8.0 core:move-down (atom-text-editor.editor)
 15x -6:14.1.0 core:move-up (atom-text-editor.editor)
 23x -6:08.7.0 core:move-down (atom-text-editor.editor)
     -1:39.4.0 tree-view:toggle-focus (atom-text-editor.editor)
  5x -1:29.2.0 core:backspace (atom-text-editor.editor.mini)
     -1:24.6.0 core:confirm (atom-text-editor.editor.mini)
  3x -0:54.3.0 core:backspace (atom-text-editor.editor)
  3x -0:53 editor:move-to-beginning-of-word (atom-text-editor.editor)
     -0:52.2.0 core:move-right (atom-text-editor.editor)
     -0:51.9.0 core:paste (atom-text-editor.editor)
     -0:47.5.0 editor:move-to-end-of-screen-line (atom-text-editor.editor)
     -0:46.5.0 core:save (atom-text-editor.editor)
     -0:11.1.0 core:confirm (atom-text-editor.editor.mini)

Config

{
  "core": {
    "ignoredNames": [
      ".git",
      ".hg",
      ".svn",
      ".DS_Store",
      "Thumbs.db",
      "bower_components",
      "node_modules"
    ]
  },
  "tree-view": {}
}

Installed Packages

# User
No installed packages

# Dev
No dev packages

Activity

  1. basarat commented on Apr 29, 2015

    @basarat

    A common pain for windows. Something is locking the file. Treeview could give a better error in this case like atom.notifications.addError("Cannot commit move. Permission denied"); instead of leaving it as an unhandled exception.

  2. joeferraro commented on May 26, 2015

    @joeferraro

    fwiw, on windows, I can only reproduce this behavior when the directory is selected in the tree view. When the directory is not selected, my fs operations involving the directory succeed without issue.

  3. fansining commented on Sep 12, 2017

    @fansining

    i haven't get it...

  4. latimeks commented on Jun 5, 2018

    @latimeks

    I just got this error running a small node app. Disconnect all browsers, terminals and processes from atom then try renaming. If that doesn't work. Close and reopen atom and try renaming. This worked fine for me.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions