dokan-dev / dokany

User mode file system library for windows with FUSE Wrapper
http://dokan-dev.github.io
5.21k stars 661 forks source link

Display the local directory and the user-defined directory file obtained by the interface under the same drive letter? #1065

Closed TheBestMore closed 2 years ago

TheBestMore commented 2 years ago

Feature request can skip this form. Bug report must complete it. Check List must be 100% match or it will be automatically closed without further discussion. Please remove this line.

Environment

Description

How to display the locally mounted drive letter and the directory structure obtained by the remote interface in one disk at the same time? How to distinguish between local files and directory files returned by the interface when opening files and directories? Just contacted dokan, are there any similar cases or documents

Liryna commented 2 years ago

Hi @TheBestMore ,

If I understand correctly you want to add remote content to an existing real hierarchy? If that's the case, you can mount a remote content in an empty folder folder on a real drive. You just need to use the existing folder path a mount point. Any requests you will get through the API will be for this folder.

TheBestMore commented 2 years ago

When you double-click this file or folder after you mount it, how do you determine whether it is a remote file or a local file?

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年2月7日(星期一) 上午10:22 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [dokan-dev/dokany] Display the local directory and the user-defined directory file obtained by the interface under the same drive letter? (Issue #1065)

Hi @TheBestMore ,

If I understand correctly you want to add remote content to an existing real hierarchy? If that's the case, you can mount a remote content in an empty folder folder on a real drive. You just need to use the existing folder path a mount point. Any requests you will get through the API will be for this folder.

— Reply to this email directly, view it on GitHub , or unsubscribe . Triage notifications on the go with GitHub Mobile for iOS or Android .
You are receiving this because you were mentioned.Message ID: <dokan-dev/dokany/issues/1065/1031009973 @ github . com>

Liryna commented 2 years ago

Could you give more details?

The files in the mounted folder or drive letter is whatever you want it to be. Only the user implementation knows what it is. Dokan is not making any difference

TheBestMore commented 2 years ago

What I want to achieve is the following functions - the loaded drive letter is composed of two parts: one is the content of the local folder, the other is the remote data directory, which are mixed together. When users click a file, they need to judge whether it is a local file or remotely mounted. If it is remotely mounted, they can download the file locally through their own interface to open the file.

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年2月7日(星期一) 上午10:34 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [dokan-dev/dokany] Display the local directory and the user-defined directory file obtained by the interface under the same drive letter? (Issue #1065)

Could you give more details?

The files in the mounted folder or drive letter is whatever you want it to be. Only the user implementation knows what it is. Dokan is not making any difference

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.Message ID: @.***>

Liryna commented 2 years ago

Yes, this is possible but you will have to implement this logic yourself through the interface. Remember which files are part of your local cache and otherwise fetch their content remotely.

Take a look at the samples. It might give you an idea how to do it .

TheBestMore commented 2 years ago

How should I distinguish between local cache and remote directory structure? There doesn't seem to be this in the demo

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年2月7日(星期一) 上午10:53 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [dokan-dev/dokany] Display the local directory and the user-defined directory file obtained by the interface under the same drive letter? (Issue #1065)

Yes, this is possible but you will have to implement this logic yourself through the interface. Remember which files are part of your local cache and otherwise fetch their content remotely.

Take a look at the samples. It might give you an idea how to do it .

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.Message ID: @.***>

Liryna commented 2 years ago

@TheBestMore See https://dokan-dev.github.io/dokany-doc/html/ "Dokan File Info Life Time" DOKAN_FILE_INFO.Context could be used by you to store informations regarding the file state

TheBestMore commented 2 years ago

Can you pay for auxiliary development?

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年2月7日(星期一) 中午11:44 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [dokan-dev/dokany] Display the local directory and the user-defined directory file obtained by the interface under the same drive letter? (Issue #1065)

@TheBestMore See https://dokan-dev.github.io/dokany-doc/html/ "Dokan File Info Life Time" DOKAN_FILE_INFO.Context could be used by you to store informations regarding the file state

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.Message ID: @.***>

Liryna commented 2 years ago

No but maybe someone of the community seeing this could propose their service.