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

SYS - Check the return code when deleting the file view #970

Closed zqlustc closed 3 years ago

zqlustc commented 3 years ago

When the deletion of the underlying user-mode file system fails, the file view will still be deleted. File still exists after refreshing.

Fixes # 969

Checklist

Changes proposed in this pull request:

Liryna commented 3 years ago

@zqlustc The status is always SUCCESS from https://github.com/dokan-dev/dokany/blob/master/dokan/cleanup.c#L37 This PR will not solve the issue you are facing. Could you open an issue and explain your issue there ?

zqlustc commented 3 years ago

Could you open an iss Hi, I am sorry for not making it clear. The dokan and dokanfuse adaptation is modified locally. problem I faced: Now I have a file in the dokan mount point, for example, named test.txt. Right-click to delete the test1 file it will delete test.txt with no prompt, but it maybe failed in the dokan fuse. After I refesh the parent dir of test.txt. It appears again after the directory is refreshed.

Liryna commented 3 years ago

@zqlustc Per microsoft documentation, cleanup cannot fail. If delete must fail, it must be during createfile or set delete that everything need to put in place for the delete to work during cleanup.

zqlustc commented 3 years ago

Hi, Thanks, I get it. Now I have two problems when build the dokan.

Liryna commented 3 years ago

Glad you have been able to find a way to get around your cleanup issue.

zqlustc commented 3 years ago

Hi, Sorry to send email to you for help several times. You Are very friendly and outstanding. Thanks very much.

Now I have a problem.  Could we build the x64 setup only with build_installer.ps1? In other word, could I add some parameters to build the x64 setup, not all arch? Thanks.

---Original--- From: "Liryna"<notifications@github.com> Date: Mon, Feb 8, 2021 15:50 PM To: "dokan-dev/dokany"<dokany@noreply.github.com>; Cc: "张奇龙"<984811670@qq.com>;"Mention"<mention@noreply.github.com>; Subject: Re: [dokan-dev/dokany] SYS - Check the return code when deleting the file view (#970)

Closed #970.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

zqlustc commented 3 years ago

Hi, I have find the method to build x64 setup only. Thanks.

---Original--- From: "Liryna"<notifications@github.com> Date: Mon, Feb 8, 2021 15:50 PM To: "dokan-dev/dokany"<dokany@noreply.github.com>; Cc: "张奇龙"<984811670@qq.com>;"Mention"<mention@noreply.github.com>; Subject: Re: [dokan-dev/dokany] SYS - Check the return code when deleting the file view (#970)

Closed #970.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.