Bug 371954 - Gdrive doesn't show all files/folders
Summary: Gdrive doesn't show all files/folders
Status: RESOLVED FIXED
Alias: None
Product: kio-gdrive
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 1.0.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Elvis Angelaccio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-01 20:35 UTC by Michał Dybczak
Modified: 2016-11-07 13:52 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 1.0.4


Attachments
Gdrive view in Dolphin and in browser. In Dolphin 3 folders are missing. (340.44 KB, image/png)
2016-11-01 20:35 UTC, Michał Dybczak
Details
Output of "journalctl -b | grep kf5.kio.gdrive" (17.09 KB, text/plain)
2016-11-04 23:01 UTC, Michał Dybczak
Details
Output of "journalctl -b | grep org.kde.kgapi" (81.58 KB, text/plain)
2016-11-07 06:16 UTC, Michał Dybczak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Dybczak 2016-11-01 20:35:19 UTC
Created attachment 101948 [details]
Gdrive view in Dolphin and in browser. In Dolphin 3 folders are missing.

Gdrive doesn't show all folders. In one of folders I have 4 folders yet I see only one of them.
Comment 1 Elvis Angelaccio 2016-11-02 10:19:01 UTC
Please create the file ~/.config/QtProject/qtlogging.ini with the following content:

[Rules]
kf5.kio.gdrive.debug=true


Then open again Dolphin, go to that Backup folder and attach here the output of the following command:

journalctl -b | grep kf5.kio.gdrive
Comment 2 Michał Dybczak 2016-11-02 18:52:38 UTC
I don't have ~/.config/QtProject/ folder :(
Comment 3 Elvis Angelaccio 2016-11-03 09:59:49 UTC
(In reply to Michał Dybczak from comment #2)
> I don't have ~/.config/QtProject/ folder :(

You need to manually create it.
Comment 4 Michał Dybczak 2016-11-04 23:01:32 UTC
Created attachment 102039 [details]
Output of "journalctl -b | grep kf5.kio.gdrive"
Comment 5 Elvis Angelaccio 2016-11-05 17:17:38 UTC
(In reply to Michał Dybczak from comment #4)
> Created attachment 102039 [details]
> Output of "journalctl -b | grep kf5.kio.gdrive"

Thanks. Can you also attach the output of "journalctl -b | grep org.kde.kgapi" ?
Comment 6 Michał Dybczak 2016-11-06 19:49:00 UTC
How can I print intput of "journalctl -b | grep org.kde.kgapi" into file? It's too big to mark it all.
Comment 7 Michał Dybczak 2016-11-06 19:49:52 UTC
I meant output*
Comment 8 Christoph Feck 2016-11-07 00:16:10 UTC
journalctl -b | grep org.kde.kgapi > output.txt
Comment 9 Michał Dybczak 2016-11-07 06:16:33 UTC
Created attachment 102086 [details]
Output of "journalctl -b | grep org.kde.kgapi"
Comment 10 Elvis Angelaccio 2016-11-07 11:30:45 UTC
(In reply to Michał Dybczak from comment #9)
> Created attachment 102086 [details]
> Output of "journalctl -b | grep org.kde.kgapi"

Thanks, this was helpful. Those three folders that you don't see are labeled as hidden. Do you see them if you show the hidden files? (press "Alt" plus "." keys in Dolphin)
Comment 11 Michał Dybczak 2016-11-07 11:39:46 UTC
I used "alt+h" and folders showed themselves! Thanks!
I would never thought that linux folders can be hidden without "." So trivial issue. However I don't see any settings with "hidden" to those folders. How can I make them unhidden then?
Comment 12 Elvis Angelaccio 2016-11-07 11:46:36 UTC
(In reply to Michał Dybczak from comment #11)
> I used "alt+h" and folders showed themselves! Thanks!
> I would never thought that linux folders can be hidden without "." So
> trivial issue. However I don't see any settings with "hidden" to those
> folders. How can I make them unhidden then?

It's kio-gdrive that's hiding them (even though their filename doesn't start with a dot) because they have the "hidden" label.

I have no idea why they are marked as hidden. However, it seems that this label is deprecated so I think we can just ignore it and always show all files.
Comment 13 Michał Dybczak 2016-11-07 12:07:29 UTC
Deprecated? You mean that this feature will be removed in some feature updates? Because so far it works, although I do agree that it's pointless feature so it needs to go.
That's not ideal at the moment, because I often switch between hidden/unhiden and by default it's hidden but I can live with it. Will wait for the updates.
Most important is that gdrive works.
Thanks!

Off topic: Will there be some additional dolphin implementation like quick access to gdrive account? At the moment I had to add it manually so I wouldn't have to open it from start menu.
Comment 14 Elvis Angelaccio 2016-11-07 12:15:23 UTC
(In reply to Michał Dybczak from comment #13)
> Deprecated? You mean that this feature will be removed in some feature
> updates? Because so far it works, although I do agree that it's pointless
> feature so it needs to go.
> That's not ideal at the moment, because I often switch between
> hidden/unhiden and by default it's hidden but I can live with it. Will wait
> for the updates.
> Most important is that gdrive works.
> Thanks!

Deprecated in the Drive REST api, it's not related to the hidden files in Dolphin.

> 
> Off topic: Will there be some additional dolphin implementation like quick
> access to gdrive account? At the moment I had to add it manually so I
> wouldn't have to open it from start menu.

Yes, in the next version kio-gdrive will be available in the "Network" button in Dolphin.
Comment 15 Michał Dybczak 2016-11-07 12:18:18 UTC
Thanks :)
Comment 16 Elvis Angelaccio 2016-11-07 13:41:40 UTC
Git commit 2e5e225b035433c10194fe294a058f280d4e88e0 by Elvis Angelaccio.
Committed on 07/11/2016 at 13:38.
Pushed by elvisangelaccio into branch 'master'.

drive: deprecate hidden() and setHidden() in File

The 'hidden' label is deprecated in the v2 REST api and removed in the
v3 one. It was also not well defined to begin with, so it can just be
ignored.

REVIEW: 129359

M  +11   -6    src/drive/file.h

http://commits.kde.org/akonadi-google/2e5e225b035433c10194fe294a058f280d4e88e0
Comment 17 Elvis Angelaccio 2016-11-07 13:52:52 UTC
Git commit 0c53b5ca147ee82e79d939f3ff11682cc76e0b97 by Elvis Angelaccio.
Committed on 07/11/2016 at 13:52.
Pushed by elvisangelaccio into branch '1.0'.

Ignore the deprecated 'hidden' label

The 'hidden' label is randomly set by some clients and users are not
aware of this. This can result in files visible from the web UI but
hidden by kio-gdrive.

This label is also deprecated, so we can just ignore it and always show all
files.
FIXED-IN: 1.0.4

M  +0    -1    src/kio_gdrive.cpp

http://commits.kde.org/kio-gdrive/0c53b5ca147ee82e79d939f3ff11682cc76e0b97