question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Moving a folder to a location with it already existing deletes the existing foler

See original GitHub issue

Type: Bug

Create the Following File system:

Folder1
 |-- Folder2
 |   |-- File1
Folder2
 |-- File2

Now move the lower Folder2 into Folder1. (via Drag-n-Drop) Instead of the contents of both Folders being merged only the contents of the lower folder are there after the move operation.

Result:

Folder1
 |-- Folder2
 |   |-- File2

Expected Result:

Folder1
 |-- Folder2
 |   |-- File1
 |   |-- File2

VS Code version: Code 1.72.2 (d045a5eda657f4d7b676dedbfa7aab8207f8a075, 2022-10-12T22:15:18.074Z) OS version: Windows_NT x64 10.0.22621 Modes: Sandboxed: No Remote OS version: Linux x64 5.4.0-1094-azure

System Info
Item Value
CPUs Intel® Core™ i7-8650U CPU @ 1.90GHz (8 x 2112)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) undefined
Memory (System) 15.92GB (3.28GB free)
Process Argv –crash-reporter-id c0b728c1-554c-4067-b8ee-a399c07e544b
Screen Reader no
VM 0%
Item Value
Remote Codespaces
OS Linux x64 5.4.0-1094-azure
CPUs Intel® Xeon® Platinum 8272CL CPU @ 2.60GHz (4 x 2593)
Memory (System) 7.77GB (3.77GB free)
VM 0%
Extensions (64)
Extension Author (truncated) Version
packer 4op 0.3.0
auto-rename-tag for 0.1.10
codespaces Git 1.13.1
gitpod-desktop git 0.0.64
jupyter-keymap ms- 1.0.0
remote-containers ms- 0.262.3
remote-ssh ms- 0.90.1
remote-ssh-edit ms- 0.84.0
remote-wsl ms- 0.72.0
vscode-remote-extensionpack ms- 0.21.0
riscv-plus ste 0.1.0
vscode-icons vsc 12.0.1
riscv zhw 0.0.8
vscode-openapi 42C 4.15.9
packer 4op 0.3.0
vscode-base64 ada 0.1.0
ng-template Ang 14.2.0
vscode-eslint dba 2.2.6
xml Dot 2.5.1
gitlens eam 13.0.4
EditorConfig Edi 0.16.4
prettier-vscode esb 9.9.0
auto-rename-tag for 0.1.10
codespaces Git 1.13.1
copilot Git 1.57.7193
vscode-pull-request-github Git 0.50.0
gitpod-remote-ssh git 0.0.38
go gol 0.35.2
todo-tree Gru 0.0.219
rest-client hum 0.25.1
latex-workshop Jam 9.0.0
docomment k– 0.1.31
rainbow-csv mec 3.3.0
file-downloader min 1.0.12
vscode-docker ms- 1.22.2
csharp ms- 1.25.0
python ms- 2022.16.1
vscode-pylance ms- 2022.11.10
jupyter ms- 2022.9.1202862440
jupyter-keymap ms- 1.0.0
jupyter-renderers ms- 1.0.10
vscode-jupyter-cell-tags ms- 0.1.6
vscode-jupyter-powertoys ms- 0.0.6
vscode-jupyter-slideshow ms- 0.1.5
azure-account ms- 0.11.2
cpptools ms- 1.12.4
hexeditor ms- 1.9.9
live-server ms- 0.4.3
vscode-typescript-tslint-plugin ms- 1.3.4
vsliveshare ms- 1.0.5762
quicktype qui 12.0.46
java red 1.12.0
vscode-commons red 0.0.6
vscode-yaml red 1.10.1
riscv-plus ste 0.1.0
wolf tra 0.4.3
vscodeintellicode Vis 1.2.29
vscode-java-debug vsc 0.46.0
vscode-java-dependency vsc 0.21.1
vscode-java-pack vsc 0.25.6
vscode-java-test vsc 0.37.1
vscode-icons vsc 12.0.1
quokka-vscode Wal 1.0.508
riscv zhw 0.0.8

(2 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscoreces:30445986
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
azure-dev_surveyone:30548225
pyindex848:30577860
nodejswelcome1:30587005
fc301958:30595537
282f8724:30602487
iaj6b796:30604794
dbltrim-noruby:30604474

Issue Analytics

  • State:open
  • Created 10 months ago
  • Reactions:17
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
DanielHabenichtcommented, Dec 21, 2022

Seems nice!

It should also be consistent when using Keyboard shortcuts. Currently the behavoir of copying it with mouse and keyboard shortcuts is different.

0reactions
pingrencommented, Dec 21, 2022

I suggest implementing a new dialog to ask user intentions if we are going to add merging folder feature. For example:

CleanShot 2022-12-21 at 11 20 25

If we clearly differentiate two actions, users won’t get unexpected results.

Another suggestion before this issue closed: we could improve the dialog message wording, since Windows users will expect replacing a folder will merge the contents (which is Windows system default I guess) @lramos15

Read more comments on GitHub >

github_iconTop Results From Across the Web

Moving files accidentally to an not existing directory erases files?
As Rinzwind says, moving files to a nonexistent destination directory shouldn't cause data loss when you attempt it using a single mv command....
Read more >
How to copy, delete, and move files and folders - Microsoft Learn
Learn how to copy, delete, and move files and folders using the File, Directory, FileInfo, and DirectoryInfo classes.
Read more >
Move your organization's content to a shared drive
Unmovable files and folders​​ For any files or folders that can't be moved due to permission or access issues, a shortcut to the...
Read more >
Directory.Move doesn't work (file already exist) - Stack Overflow
This method will move content of a folder recursively and overwrite existing files. You should add some exception handling.
Read more >
Moving and Copying Files & Folders - Box Support
You can move a file or folder from one folder to another by dragging it from its current location and dropping it into...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found