Help | How to implement save in dokan #1230
Replies: 14 comments
-
Hi @biplab5464 , I would suggest implementing all dokan operations. Use Procmon to investigate where does the error comes from (create, write ...) and then look at your filesystem logs to determine the error. You can also try testing tools like 1 and 2 to ensure your filesystem behaves as expected |
Beta Was this translation helpful? Give feedback.
-
when create file is called Desired access is : Read Attributes. is it the problem? |
Beta Was this translation helpful? Give feedback.
-
if you execute the same operation on a normal NTFS filesystem, what is the difference ? |
Beta Was this translation helpful? Give feedback.
-
for every process For normal NTFS some have Read Attributes and some have Generic Read and write attributes and synchronization |
Beta Was this translation helpful? Give feedback.
-
I also try implementing is there is something that this function doesn't print to the console or this function is not being called |
Beta Was this translation helpful? Give feedback.
-
this is debug output from the create_file, when it is trying to open am i doing something wrong here |
Beta Was this translation helpful? Give feedback.
-
one unique thing is both |
Beta Was this translation helpful? Give feedback.
-
Please see
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Good progress! The incorrect path must be due to an incorrect name returned during find files or get file info. Please check what your implementation returns and what the samples are returning (expectation). |
Beta Was this translation helpful? Give feedback.
-
@biplab5464 have you been able to make progress? Can this be closed ? |
Beta Was this translation helpful? Give feedback.
-
i am able to make lots of progress. thank you. i am still not able to figure out the wrong path in some apps like for a jpeg file, a file is opening it at the wrong path for windows photo app but at the same time it is opening correctly in vs code or other image viewer i have looked at and better we can close the issue and discuss this on some dokan-rust forum or discord. if something like this exists can you please share it with me. so we can closed this issue Thank you |
Beta Was this translation helpful? Give feedback.
-
about the wrong path it is always returning the first file in the directory with alphabetically sort |
Beta Was this translation helpful? Give feedback.
-
My Friend is testing my my dokan app it was working perfectly for him, i mean he didn't got wrong Path for any app or in any condition but i still getting wrong path although the code is same also the driver version is same. Also, we tried to replicate same folder structure (i send him the file i was testing on) my system My friend system |
Beta Was this translation helpful? Give feedback.
-
From my understanding of the documentation, it seems that for any save event, the create_file function is called first, followed by the write_file function. However, I’m not clear on the conditions under which the write_file function is invoked.
At present, I’m able to recursively list directories and open files. However, when I attempt to save a file, I encounter an error in VS Code: Failed to save 'test/c': Unable to write file 'm:\test\test.c' (Unknown (FileSystermError): Error: EINVAL: invalid argument, write).
Despite having implemented the write_file function, I’m still facing this issue. As I’m new to Windows development and still familiarizing myself with the Windows API, I’m finding it challenging to understand everything.
I was wondering if anyone could assist me with this issue, perhaps through a platform like Discord or Telegram, instead of creating an issue here. Any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions