winfsp / cgofuse

Cross-platform FUSE library for Go - Works on Windows, macOS, Linux, FreeBSD, NetBSD, OpenBSD
https://winfsp.dev
MIT License
511 stars 82 forks source link

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

Open lkbtt opened 1 year ago

lkbtt commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Try: -o VolumePrefix=/Server/Share.