Giter Site home page Giter Site logo

Comments (4)

astrada avatar astrada commented on May 18, 2024

Sorry, I don't have Office, so I can't try it directly. Could you please do this test? Save the file on your filesystem, then copy it to the mounted directory. Is it still corrupted?

from google-drive-ocamlfuse.

pmorch avatar pmorch commented on May 18, 2024

Hi,

When I save it to the local directory, I make a note of its MD5 sum. I copy it to the mounted directory, and it keeps the MD5 sum. Both the original local and remote files can open fine.

If, instead, I save to the mounted directory, and then copy that file locally, both remote and local files have same MD5 sum and both are corrupt.

It seems it is the save process that causes the corruption. I have noticed that word does "odd" (but legal) tricks with saving to short-lived/temporary files in the same dir as the file during the save process.

Microsoft's Description of how Word creates temporary files e.g. says:

By saving to a temporary file first and then renaming the file to the proper name, Word ensures the data integrity of your original file against problems (such as a power failure or lost network connections) that may occur while the file is being written.

from google-drive-ocamlfuse.

pmorch avatar pmorch commented on May 18, 2024

I've also run it like so:

google-drive-ocamlfuse -debug -d <mountpoint> 2>&1 | tee google-drive-ocamlfuse.log

to give you detailed log on what is going on. Email me privately at [email protected], and I'll send you the log file, and a movie of what is going on in the GUI.

However, now it fails in another way. Instead of Word silently declaring the save a success, and then discovering corruption during open of the saved file, it now discovers the fail during save, asks for a new file name to save under, but still fails again. After that, Word gives up saving.

For some reason, after a few tries, I cannot reproduce my first scenario, but only this new one. Either way, though, Word is not able to save to a google-drive-ocamlfuse mountpoint.

from google-drive-ocamlfuse.

pmorch avatar pmorch commented on May 18, 2024

I can confirm that after commit 9d11a75 (in version 0.4.4), this issue has been resolved for me. Thanks, Alessandro

from google-drive-ocamlfuse.

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.