Which Dokan callbacks handle Explorer folder Copy/Paste in DokanNet?

0 views
Skip to first unread message

Gray Jumba

unread,
Sep 27, 2025, 9:01:02 AM (22 hours ago) Sep 27
to Dokan

Hi! Using C# + DokanNet, I’m seeing a paste of a folder create only the top folder—no children get created.

What I expect

  • No special “copy” callback, just a sequence:

    • CreateFile(dest-folder, Directory + CreateNew/OpenOrCreate)

    • FindFiles(source-folder) (enumerate)

    • Then recursively CreateFile for each child (and WriteFile/Flush for files)

What I observe

  • Logs show CreateFile for the dest folder and FindFiles on the source, but I don’t get CreateFile for child files/subfolders afterward; Explorer progress jumps to 100% and stops.

Questions

  1. Is the above sequence correct for Explorer folder copy?

  2. Which return codes/flags during CreateFile (dir) are essential so Explorer continues to recurse?

  3. Can an early FileNotFound or wrong status on parent/dir CreateFile cause Explorer to skip issuing child CreateFiles?

  4. Any must-implement ops for copy to proceed reliably (SetFileTime, SetFileAttributes, SetEndOfFile, etc.)?

Env

  • Dokan/DokanNet: [version]

  • Windows: [version]

  • .NET: [version]

Thanks!

Reply all
Reply to author
Forward
0 new messages