Comments (6)
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.
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.
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.
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.
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.
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)
- Degoo uses Windows filenaming conventions and not Unix HOT 3
- Running Degoo api on Windows results in os.sep and os.path.abspath conflicts (and possibly others) HOT 46
- List of commands that can be used? HOT 4
- Possible login issue HOT 19
- How to Use degoo_put command ? HOT 2
- Downloads seem to stop at 128MB HOT 1
- 429 on login HOT 41
- No download URL HOT 5
- Stack-trace while listing subfolder items HOT 5
- How to use? HOT 2
- FUSE? HOT 12
- Missing Dependency HOT 2
- 403 Error when trying to login HOT 38
- response 400 for all commands HOT 1
- How do I download all Degoo files at once? HOT 1
- Trying to run in python env on mac get : ModuleNotFoundError: No module named 'appdirs' HOT 1
- Any further development? HOT 4
- guide
- Login Failed with: 400: HOT 2
- How to install this in termux & use it HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from degoo.