Giter Site home page Giter Site logo

Comments (5)

viciousviper avatar viciousviper commented on May 24, 2024

Hi @drunkenbeaver,

you are most likely falling victim to a curious bug/wierd behaviour in Windows Explorer which I haven't quite been able to nail down so far.
As it turns out, you can drag'n drop to your heart's delight as long as the previously used space on the target drive you are pasting to is greater than or equal to the size of the file you are pasting. At least this is what I've witnessed so far.
Could you do me a favor and try to verify this condition on your environment? The size constraint really only affects Windows Exporer - you should be able to xcopy files to the cloud drive with no problem at all.

Cheers
vv

from dokancloudfs.

drunkenbeaver avatar drunkenbeaver commented on May 24, 2024

At first I haven't entirely understood the part in bold,.. But now I got it. I played with 10 - 50 KB files and it works exactly as you are saying. Indeed xcopy works fine - regardless the previously used space on the target drive (summing up just sizes of files - excluding directories), but unfortunately that's not what users are 'typically' doing (including myself),... :)

Of course, very nice discovery!

So, you're pretty sure it's up to the Windows Explorer behavior, and not the Dokan's fault?

Thanks for such a quick reply and information you shared!

  • Thumbs up for the whole project, really nice work!.

Best regards

UPDATE: Just for the records, I just tried the same on 'Mirror' sample - and there it works even if the directory is empty. I know that there are different file streams (comparing to this project's cloud services) but however, it is telling me that somehow, this should be 'fixable'.

from dokancloudfs.

viciousviper avatar viciousviper commented on May 24, 2024

Thanks for confirming my suspicion wrt. Windows Explorer's strange copying behavior.

I totally believe that this is not a problem for the Dokan 'Mirror' sample - because it does exactly what it is named after and just forwards FS API calls to another physical drive where conditions are just like what Windows Explorer expects.
However, DokanCloudFS is required to interpret FS API calls and associate them with cloud gateway responses - and apparently will get it wrong under the conditions cited above.

I have seen traces of the problem before with log level 'Info' activated. What happens is basically that

  • at a certain point in time - and this is before actually writing to the new file - WinExplorer asks the driver for the current value of 'used space' on the target drive
  • now DokanCloudFS, lacking any psychic reading capacity, will faithfully report the currently used space - which will typically be zero for empty drives
  • WinExplorer, unable to cope with the naked truth, will then proceed to raise the error you saw and claim insufficient free space.

I'll look into the problem for the next release of DokanCloudFS.

from dokancloudfs.

viciousviper avatar viciousviper commented on May 24, 2024

Hi @drunkenbeaver,

might I ask a favour of you - could you please re-verify the error using Dokany 1.0.1?
I just tried to get to the root of the matter using the Box and various other cloud storage gateways, but I suddenly couldn't reproduce the problem.

TIA, vv

from dokancloudfs.

viciousviper avatar viciousviper commented on May 24, 2024

Closed due to prolonged inactivity.

from dokancloudfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.