Coder Social home page Coder Social logo

gocryptfs / securefs support about gcsf HOT 3 CLOSED

harababurel avatar harababurel commented on May 23, 2024 2
gocryptfs / securefs support

from gcsf.

Comments (3)

platinum55 avatar platinum55 commented on May 23, 2024

i noticed the following:

the files are NOT RENAMED, it just seems so. when using "rclone" I see all files correct, also the modification didnt change - which it should when rename occurs. So I guess GCSF has problems with files which have the same filename (but sit in other folder) - please check - GCSF is the fastest but I cannot use it currently because of this bug

thanks in advance

from gcsf.

platinum55 avatar platinum55 commented on May 23, 2024

after some research I found the lines 372-374 in file_manager.rs and commented them out, now its working - seems the code did this on purpose. I cannot see any errors yet, also the identical files have different content - why is this suffix needed?

from gcsf.

harababurel avatar harababurel commented on May 23, 2024

Late update: after @platinum55's change (integrated in 0.1.23) you can now disable the behavior which renamed identical files.

The reason behind this was a mismatch between Google Drive -- which allows files with identical names to be placed in the same directory -- and traditional file systems -- which do not. Without adding a distinctive feature such as an indexed suffix to each identical file, users would not be able to do anything with N-1 out of N such files. For instance, imagine 100 files named foo.txt, each containing something different. cat foo.txt has no way of knowing which one the user is referring to, so it would output the contents of whatever file GCSF decided is matched to that particular name, leaving all other 99 inaccessible.

Indexing the file names partially solves this problem, but it also creates others as you have noticed first-hand. Therefore try setting rename_identical_files = false in your config.

from gcsf.

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.