question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not able to copy a file to Dokan drive

See original GitHub issue

I am using “DokanNet 1.1.0-rc4” and the Dokan Library with version number 1.0.0.4000.

I am using the system copy command to copy a new file into the virtual drive. Although I am trying to imitate the responses given by the Mirror sample, I never get the “SetEndOfFile”, “WriteFile” and “SetFileAttributes” callbacks.

This is my log:

mvx: Diagnostic:   0.27 Mounted()

mvx: Diagnostic:   0.31 CreateFile(filePath: "\", access: Synchronize, share: ReadWrite, mode: Open, options: 00000000, attributes: 0, info: ) => Success

mvx: Diagnostic:   0.31 GetFileInformation("\", out fileInformation: (FileName: '\', Length: 0, Attributes: 'Directory', CreationTime: 9/13/2016 10:23:09 AM)) => Success

mvx: Diagnostic:   0.31 GetVolumeInformation()

mvx: Diagnostic:   0.31 GetFileInformation("\", out fileInformation: (FileName: '\', Length: 0, Attributes: 'Directory', CreationTime: 9/13/2016 10:23:09 AM)) => Success

mvx: Diagnostic:   0.31 GetDiskFreeSpace()

mvx: Diagnostic:   0.32 Cleanup("\")

mvx: Diagnostic:   0.32 CloseFile("\")

mvx: Diagnostic:   0.32 CreateFile(filePath: "\", access: Synchronize, share: ReadWrite, mode: Open, options: 00000000, attributes: 0, info: ) => Success

mvx: Diagnostic:   0.32 GetFileInformation("\", out fileInformation: (FileName: '\', Length: 0, Attributes: 'Directory', CreationTime: 9/13/2016 10:23:09 AM)) => Success

mvx: Diagnostic:   0.32 GetDiskFreeSpace()

mvx: Diagnostic:   0.32 Cleanup("\")

mvx: Diagnostic:   0.32 CloseFile("\")

mvx: Diagnostic:   0.33 CreateFile(filePath: "\file4.txt", access: ReadAttributes, share: ReadWrite, Delete, mode: Open, options: 00000000, attributes: 0, info: ) => ObjectPathNotFound

mvx: Diagnostic:   0.33 CreateFile(filePath: "\file4.txt", access: ReadAttributes, share: ReadWrite, Delete, mode: Open, options: 00000000, attributes: 0, info: ) => ObjectPathNotFound

mvx: Diagnostic:   0.34 CreateFile(filePath: "\file4.txt", access: ReadData, WriteData, AppendData, ReadExtendedAttributes, WriteExtendedAttributes, ReadAttributes, WriteAttributes, Delete, ReadPermissions, ChangePermissions, Synchronize, share: None, mode: Create, options: 08000000, attributes: Archive, info: ) => Success

mvx: Diagnostic:   0.34 GetFileInformation("\file4.txt", out fileInformation: (FileName: '\file4.txt', Length: 0, Attributes: 'Archive', CreationTime: 9/13/2016 10:23:09 AM)) => Success

mvx: Diagnostic:   0.34 GetFileInformation("\file4.txt", out fileInformation: (FileName: '\file4.txt', Length: 0, Attributes: 'Archive', CreationTime: 9/13/2016 10:23:09 AM)) => Success

mvx: Diagnostic:   0.34 GetFileInformation("\file4.txt", out fileInformation: (FileName: '\file4.txt', Length: 0, Attributes: 'Archive', CreationTime: 9/13/2016 10:23:09 AM)) => Success

mvx: Diagnostic:   0.34 GetFileInformation("\file4.txt", out fileInformation: (FileName: '\file4.txt', Length: 0, Attributes: 'Archive', CreationTime: 9/13/2016 10:23:09 AM)) => Success

mvx: Diagnostic:   0.34 GetFileInformation("\file4.txt", out fileInformation: (FileName: '\file4.txt', Length: 0, Attributes: 'Archive', CreationTime: 9/13/2016 10:23:09 AM)) => Success

mvx: Diagnostic:   0.34 Cleanup("\file4.txt")

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
TheFabFabcommented, Sep 13, 2016

Ahh, I found something! I was mounting it as “RemovableDrive”. Changing to ‘FixedDrive’ helped with one of my scenarios, the other one is still failing… investigating…

0reactions
TheFabFabcommented, Sep 13, 2016

I got it running with “FixedDrive”. There might be an issue with the “RemovableDrive” scenario, that you might want to fix - so it’s up to you if you want to close this or investigate.

For me, however, FixedDrive will do it just fine. Thanks for your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid parameter on execute and cannot copy · Issue #110
I'm using DokanInstall_0.8.0_redist-RC3.exe with dokan-dotnet-master. I have two problems: When i try copy files/dirs from virtual drive and ...
Read more >
How can I detect copying files from dokan drive to the same ...
As far as my (fairly limited) knowledge goes, there is no explicit way to detect copying. You could detect copying a file in...
Read more >
Issues with network drive and playing video files
Hi, I am using dokany v1.0.0-rc4 on Win7 x64 and am facing some issues when mounting dokan volumes as network drives with mirror.exe....
Read more >
Can't View or Edit files in EncFs4Win / Dokan virtual Drive
If I copy a dir (ex, H:\D1\) to the outside, the files inside D1 wich I haven't tried to View are copied, but...
Read more >
Mount as volume b failed. Reason: Dokan drive install error.
Run cmd as Administrator (this is essential). Select the directory with the installed Virtual Drive: cd C:\Program Files\VirtualDrive.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found