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

Commit ec7e0f1

Browse files
authored
Merge pull request #1358 from atom/fix-ENOENT
Fix Uncaught Error: ENOENT: no such file or directory
2 parents 52ce711 + 455435c commit ec7e0f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/tree-view.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ class TreeView
11111111

11121112
e.dataTransfer.effectAllowed = "move"
11131113
e.dataTransfer.setDragImage(dragImage, 0, 0)
1114-
e.dataTransfer.setData("initialPaths", initialPaths)
1114+
e.dataTransfer.setData("initialPaths", JSON.stringify(initialPaths))
11151115
e.dataTransfer.setData("atom-tree-view-event", "true")
11161116

11171117
window.requestAnimationFrame ->
@@ -1146,7 +1146,7 @@ class TreeView
11461146

11471147
if initialPaths
11481148
# Drop event from Atom
1149-
initialPaths = initialPaths.split(',')
1149+
initialPaths = JSON.parse(initialPaths)
11501150
return if initialPaths.includes(newDirectoryPath)
11511151

11521152
entry.classList.remove('drag-over', 'selected')

0 commit comments

Comments
 (0)