WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Files created from Windows does not show up in bash

Open itaysk opened this issue 10 years ago • 11 comments

If you go to lxss folder, for example your home, and create a file via Windows File Explorer, it will be shown in File Explorer, but not in bash. I have also experienced files disappearing from bash when edited in windows.

I'm on 14361. This is a possible regression.

itaysk avatar Jun 18 '16 07:06 itaysk

Just updated to 14366 and it looks the same

itaysk avatar Jun 18 '16 09:06 itaysk

@itaysk pretty sure this expected behavior currently. See the explanation at https://blogs.msdn.microsoft.com/wsl/2016/06/15/wsl-file-system-support/

timfel avatar Jun 18 '16 11:06 timfel

Consider the following scenario: In bash, I created a Ruby on Rails project. I then want to edit the files using VS code. Current behavior will break the project. Files will be present in Windows world, but missing from bash.

This was even a demonstrated use case in some of the early videos that was released.

itaysk avatar Jun 18 '16 12:06 itaysk

For this scenario you will have to use a folder outside the lxrss tree. Just put the project in your Windows home directory and put a symlink to it into your linux home if you want.This has some other drawbacks, but should work for the use case you describe and was also suggested in the blogpost. Am 18.06.2016 2:11 nachm. schrieb "Itay Shakury" [email protected]:

Consider the following scenario: In bash, I created a Ruby on Rails project. I then want to edit the files using VS code. Current behavior will break the project. Files will be present in Windows world, but missing from bash.

This was even a demonstrated use case in some of the early videos that was released.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Microsoft/BashOnWindows/issues/552#issuecomment-226938236, or mute the thread https://github.com/notifications/unsubscribe/AAC0m6sqtgey8YSW-gWFN033NOirkRtmks5qM-BugaJpZM4I45FF .

timfel avatar Jun 18 '16 12:06 timfel

ok. thanks for clarifying (although a bit disappointing) should I close the issue?

itaysk avatar Jun 18 '16 13:06 itaysk

Yes

christoh avatar Jun 19 '16 13:06 christoh

There's a user voice.

therealkenc avatar Jun 19 '16 19:06 therealkenc

Closing as a duplicate of #45.

benhillis avatar Jun 20 '16 16:06 benhillis

Hi everyone, any updates on copying a folder from the windows to the Bash?

ibr123 avatar Apr 12 '17 13:04 ibr123

Hi @ibr123 -- you're posting to a ticket that has been closed as a duplicate. So you're not going to get any updates here :-) Please post on the original ticket instead (see the comments above). Alternatively, you might want to post on the UserVoice that's also linked to above.

aseering avatar Apr 12 '17 16:04 aseering

The problem with the thinking of https://blogs.msdn.microsoft.com/wsl/2016/06/15/wsl-file-system-support/ is it makes it difficult to do things like download a file from your email and migrate it to WSL

drewstaylor avatar May 01 '20 18:05 drewstaylor