GithubHelp home page GithubHelp logo

Move and rename commands about degoo HOT 6 CLOSED

MDKPredator avatar MDKPredator commented on July 3, 2024
Move and rename commands

from degoo.

Comments (6)

bernd-wechner avatar bernd-wechner commented on July 3, 2024

Thank you! Can you PR that too? Will get around to pulling them soon. Love your contribs.

I'm still hoping that Degoo can help us with a server side hash, or we can find a way to get eon from the Google store they use. it's what we need for a robust change detection. Currently I rely on file mod time and last upload time, which I'm not superbly comfortable with in this era. Better than nothing, but we provide a file hash on upload, and so one ought rightly be available to assess the need for download on.

from degoo.

bernd-wechner avatar bernd-wechner commented on July 3, 2024

Oh, I would consider collapsing rename and mv into one command. Simply more consistent with the Posix mv norm.

mv would call the appropriate API method SetRenameFile or SetMoveFile based on whether new name and old name have the same path (are in the same directory). Just a thought. One fewer commands to maintain and complies with the mv format common on Posix systems.

from degoo.

MDKPredator avatar MDKPredator commented on July 3, 2024

When uploading large files, I was investigating if it was possible to upload chunks directly to the url, but the (few) attempts I made did not work. In any case don't expect help from Degoo support.

Yeah sure, no problem, I'll wrap the rename command inside mv. I already have this logic applied in a project where I mount a directory with the Degoo content (just like what rclone does).

I was waiting for the merge of the first changes before launching the second PR, but I think there will be no conflicts. When I have these last changes I will launch it.

from degoo.

MDKPredator avatar MDKPredator commented on July 3, 2024

I have merged the rename and mv command. These are the use cases:

Rename in same folder - absolute path. Expected result: OK
Web/test/Lorem.txt
Web/test/Lorem

Rename in same folder. Expected result: OK
Web/test/Lorem.txt
Lorem

Move file to same directory. . Expected result: KO
Web/test/Lorem.txt
Web/test/

Move directory to a file. Expected result: KO
Web/test/
Web/test/Lorem

Move folder to same folder. Expected result: KO
Web/test/
Web/test/

Move directory to another one. Expected result: OK
Web/test/temporal
Web/test/secondDir

Move file to another directory. Expected result: OK
Web/test/Lorem.txt
Web/otherDir

Movie and rename file to another directory. Expected result: OK
Web/test/Lorem.txt
Web/otherDir/Lorem

from degoo.

bernd-wechner avatar bernd-wechner commented on July 3, 2024

Merged ... love your contributions! I'll heckle Degoo once more for some insight into server side hashes, but we can also consider looking in the Google services to see if they can provide one. That's the one diff feature I'm missing and I want to crontab this nightly some time to backup a NAS to Degoo.

from degoo.

bernd-wechner avatar bernd-wechner commented on July 3, 2024

Just a heads up that I seriously reworked this in: 040d78f

I haven't had a chance to test every edge case yet, if you find time to hit it hard please do. Specifically I addressed the problem iv a move and rename and how that works if preexisting file shave those names.

from degoo.

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.