You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ls lists the file (the container). Copying all files (not sure what rclone command it was, rclone docs are confusing) copies it as an empty file, with .desktop file:
Copy of the file fails:
rclone -v copy Gdrive:PowerMute .
2017/01/27 18:17:41 rclone: Version "v1.35-DEV" starting with parameters ["rclone" "-v" "copy" "Gdrive:PowerMute" "."]
2017/01/27 18:17:42 Local file system at /home/pkehl/gdrive: Modify window is 1ms
2017/01/27 18:17:43 Local file system at /home/pkehl/gdrive: Waiting for checks to finish
2017/01/27 18:17:43 PowerMute: Modification times differ by -169h22m32.373s: 2017-01-24 06:18:02.373 +0000 UTC, 2017-01-17 15:55:30 +1100 AEDT
2017/01/27 18:17:43 Local file system at /home/pkehl/gdrive: Waiting for transfers to finish
2017/01/27 18:17:43 PowerMute: Failed to copy: failed to open source object: forbidden to download - check sharing permission
The error comes from pairCopyOrMove() in sync.go where pair.src.url is an empty string.
However, I can't trace in LiteIDE before (above) pairCopyOrMove() in sync.go. Where does 'in' channel data come from? Do you know of any free Golang IDEs for debugging please?
I've attached the output of a similar request (syncing a folder containing a single App Scripts file, containing two script files and one html file) using -v --dump-bodies log.txt
Activity
ncw commentedon Jan 24, 2017
What does rclone do with them at the moment? (try with the -v flag).
Is this just a question of adding a mapping for
application/vnd.google-apps.script+jsonexports?See: https://github.com/ncw/rclone/blob/master/drive/drive.go#L60
Not sure about the parent vs the contents - how do you find the names of the contents if you can't see them?
peter-lyons-kehl commentedon Jan 27, 2017
ls lists the file (the container). Copying all files (not sure what rclone command it was, rclone docs are confusing) copies it as an empty file, with .desktop file:
cat PowerMute.desktop
[Desktop Entry]
Icon=application-vnd.google-apps.script
Name=PowerMute
Type=Link
URL=https://script.google.com/d/19QeOin6dGLEuScs7TrMwlfsFna-U1vB4ITbVSv-C4-qRq8EoaPnlGUlV/edit?usp=drivesdk
Copy of the file fails:
rclone -v copy Gdrive:PowerMute .
2017/01/27 18:17:41 rclone: Version "v1.35-DEV" starting with parameters ["rclone" "-v" "copy" "Gdrive:PowerMute" "."]
2017/01/27 18:17:42 Local file system at /home/pkehl/gdrive: Modify window is 1ms
2017/01/27 18:17:43 Local file system at /home/pkehl/gdrive: Waiting for checks to finish
2017/01/27 18:17:43 PowerMute: Modification times differ by -169h22m32.373s: 2017-01-24 06:18:02.373 +0000 UTC, 2017-01-17 15:55:30 +1100 AEDT
2017/01/27 18:17:43 Local file system at /home/pkehl/gdrive: Waiting for transfers to finish
2017/01/27 18:17:43 PowerMute: Failed to copy: failed to open source object: forbidden to download - check sharing permission
The error comes from pairCopyOrMove() in sync.go where pair.src.url is an empty string.
However, I can't trace in LiteIDE before (above) pairCopyOrMove() in sync.go. Where does 'in' channel data come from? Do you know of any free Golang IDEs for debugging please?
ncw commentedon Jan 27, 2017
Probably what I'd do next is
Which will dump the http transactions - that should tell you something!
gustavorochakv commentedon Feb 6, 2017
I've attached the output of a similar request (syncing a folder containing a single App Scripts file, containing two script files and one html file) using -v --dump-bodies
log.txt
andrekop commentedon Feb 27, 2018
I would love to have json backups of my apps script files. Wouldn't it be sufficient to just add a mapping for application/vnd.google-apps.script+json (https://developers.google.com/drive/v3/web/manage-downloads)? I haven't tested it lately but the Drive API should pack everything from a project file together in a single json file.
ncw commentedon Mar 6, 2018
@andreask1 fancy having a go with that and sending a pull request?
B4dM4n commentedon Sep 1, 2018
There has been progress for this issue:
#2479 is a work in progress rewrite of the drive documents handling.
If anyone wants to help testing the new implementation, there is a beta branch containing the changes:
https://beta.rclone.org/branch/v1.42-162-g6a66967c-drive-documents/
Keep in mind this is not tested thoroughly yet and therefore be considered experimental.
Please post any feedback in #2479. Updated releases will also be anounced there.
B4dM4n commentedon Oct 4, 2018
#2479 has been merged lately.
This feature can be used since https://beta.rclone.org/v1.43-112-ga20fae03-beta/, the latest beta and in v1.44