I am currently developing a WebDAV-FileSystem with Dokan.
First everything went really well, but then I encountered a problem:
When I single-click on a file in the Windows Explorer it not only
wants to open it, but read the file. That means I have to download the
whole file when I single-click it. I already have mounted the FS as a
Network File System.
Does anyone know which information the explorer wants when he reads
the file on a single-click?
Is there a way to differentiate whether the explorer only wants to
read the first few bytes (as I have notived in my research) or the
whole file because someone wants to open it (some flags could be
different)?
I also stumbled upon the Flag FILE_ATTRIBUTE_OFFLINE which did not
bring the hoped-use.
Maybe I did not implement a function in the right way (i.e.
GetFileInformation) so Dokan has to get this information from the file
itself, is this possible?
Thanks a lot
Michael
When you implement the read callback, you get the range that is being
read, no? The best bet is to continue downloading the file content in
the background as soon as windows starts asking for the first couple
of bytes.
If you want to get a feel for what you can do here, download Wuala and
try the file system implementation. Your usecase is very similar to
what we do.
Thomas
Michael schrieb:
thank you very much for you answer.
I tried a slightly different approach. If ReadFile is called with an
Offset of 0 I read the first BufferLength Bytes from the WebDAV-Folder
and after that I stop.
If it is called with an Offset greater than 0 I download the whole
file and read from it.
Michael
Kevin
Sent from my iPhone
> --
> You received this message because you are subscribed to the Google
> Groups "Dokan" group.
> To post to this group, send email to do...@googlegroups.com.
> To unsubscribe from this group, send email to dokan+un...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/dokan?hl=en
> .
>