stackblitz / webcontainer-core

Dev environments. In your web app.
https://webcontainers.io
MIT License
3.94k stars 174 forks source link

Unable to move files in the folder to the root directory. #1491

Closed MaLuns closed 3 months ago

MaLuns commented 3 months ago

Is your feature request related to a problem? Please describe:

Unable to move files in the folder to the root directory.

Describe the solution you'd like:

Can move files or folders in a folder to the root directory.

Describe alternatives you've considered:

Additional context:

kirjavascript commented 3 months ago

Hi! :wave: thanks for reporting this issue!

can you provide a little more information on what you've tried to do? it seems to work for me


~/projects/node
❯ mv index.js /index.js

~/projects/node
❯ ls /
bin/      dev/      etc/      home/     index.js  tmp/      usr/     ```
MaLuns commented 3 months ago

Hi! 👋 thanks for reporting this issue!

can you provide a little more information on what you've tried to do? it seems to work for me

~/projects/node
❯ mv index.js /index.js

~/projects/node
❯ ls /
bin/      dev/      etc/      home/     index.js  tmp/      usr/     ```

Thanks for your reply.

Sorry for the lack of clarity, the above refers to UI operations. But commands do work.

屏幕截图 2024-08-01 194827

kirjavascript commented 3 months ago

This also appears to be something I cannot reproduce, dragging it to the top level seems to work for me.

Could you make a video, perhaps?

MaLuns commented 3 months ago

https://github.com/user-attachments/assets/964a7ce5-e288-4044-b557-b042d5192eff

MaLuns commented 3 months ago

Microsoft.Edge.2024-08-01.20-44-56.-.Trim.mp4

_posts moving to scaffolds is OK, but moving to root doesn't work

kirjavascript commented 3 months ago

try dragging it onto another top level file:

https://github.com/user-attachments/assets/862d451e-13ff-484d-b47f-c1d932caa20f