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

How can I not let it download video/image files automatically? #79

Open
lkbtt opened this issue Feb 2, 2023 · 3 comments
Open

How can I not let it download video/image files automatically? #79

lkbtt opened this issue Feb 2, 2023 · 3 comments

Comments

@lkbtt
Copy link

lkbtt commented Feb 2, 2023

Under Windows system:

Use fuse to mount to G disk, and it is very stuck after opening

According to my observation, when I open a directory, I will trigger the automatic download of video/image files in the directory (it may be that the window system needs to display thumbnails, and must first read all the contents of the file)

If there are many video/image files in the directory, they will crash directly and have no response until all the files are downloaded.

Is there any way to solve it? How can I not let it download automatically?

image

@billziss-gh
Copy link
Collaborator

billziss-gh commented Feb 2, 2023

Usually Explorer does this when you mount as disk file system. Mounting as network file system usually mitigates this problem. To mount as network file system use the VolumePrefix option.

@lkbtt
Copy link
Author

lkbtt commented Feb 2, 2023

Usually Explorer does this when you mount as disk file system. Mounting as network file system usually mitigates this problem. To mount as network file system use the VolumePrefix option.

this is my code :
opts := []string{"-o", "volname=work", "-o", "FileSystemName=mywork"}
mount := host.Mount(mp, opts)

How to add the VolumePrefix option?

@billziss-gh
Copy link
Collaborator

billziss-gh commented Feb 2, 2023

Try: -o VolumePrefix=/Server/Share.

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

No branches or pull requests

2 participants