Replies: 1 comment
-
Hi @cowboy823, Close would be too late to report an error. Most apps do not even check the return value of CloseHandle. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
Check List
Description
I'm currently developing a remote drive that functions similarly to a local drive but uses a remote directory on an FTP server. The primary function is to allow users to copy files to this drive, which internally triggers the transfer of files to the FTP server.
After the file copying process completes, I need to implement a feature that verifies if the entire file content was successfully transferred to the remote server. My initial approach is to perform this integrity check within the DokanCloseFile function.
However, I noticed that DokanCloseFile does not return a value, which poses a challenge. If an error occurs during the file close operation (e.g., the file content is not completely transferred), there's no mechanism for DokanCloseFile to report this error. Consequently, Explorer or other applications won't be able to detect the error and notify the user, such as prompting for a file retransfer.
Request:
Could you please provide guidance or a potential solution to handle this scenario? Specifically, I'm looking for a way to inform Explorer or the corresponding application that an error occurred during the close operation so that the user can be notified and take appropriate action.
Any suggestions or workarounds to solve this problem would be greatly appreciated.
Thank you for your support!
Logs
Please attach in separate files: mirror output, library logs and kernel logs.
In case of BSOD, please attach minidump or dump analyze output.
Beta Was this translation helpful? Give feedback.
All reactions