Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"New File" under windows not showing #83

Open
Jazzpirate opened this issue Oct 4, 2019 · 2 comments
Open

"New File" under windows not showing #83

Jazzpirate opened this issue Oct 4, 2019 · 2 comments

Comments

@Jazzpirate
Copy link

Not sure if this is an issue with jnr-fuse, winFSP or my Fuse implementation, but:

Mounting a drive under windows, the "New->(File type)" option in the context menu of windows explorer does not show up. "New Directory" does though. It also doesn't show with the example implementations listed in the readme, which makes me think the problem is probably not my implementation. Any idea how to make it show up? Are there certain permissions that need to be set or something? The drive seems to be writable in general - in the memory-file-example-implementation, I can e.g. just save a new text file to the drive, I just can't create a new one via the context menu...

@RedGuys
Copy link

RedGuys commented Jun 23, 2023

Hi, I see that this issue was created 4 years ago, but maybe it will be useful to someone else, I ran into this problem and I solved it.

The problem occurs due to the permissions system in Windows, the access mask that we set in st_mode inside the getattr method is applied to a non-existent or technical user, as a result of which the explorer believes that we do not have write rights

image

To solve that problem set st_uid and st_gid to 65792, that means "Everyone" group.

stat.st_mode.set(FileStat.S_IFDIR | 0777);
stat.st_uid.set(65792);
stat.st_gid.set(65792);

And that works

image
image

Read more here: winfsp/winfsp#40 (comment)

@Heachy
Copy link

Heachy commented Mar 1, 2024

Hi @RedGuys

Why can't I open the mounting directory here? This has been bothering me for a long time. I am using a Windows system.
image

image

I want to know if it can be solved by the method you mentioned above, but I don’t know where the variables such as st_uid are.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants