Comments (6)
@musicalmarc could you share your code to request permissions? Also, have you tried to run it for the regular personal folder (not from the team drive)?
from pydrive2.
Hi it's works with a personal folder but not with a shared folder. I tested with a shared folder that I have manager access to.
# test shared drive
file_list = drive.ListFile({'q': "mimeType='application/vnd.google-apps.folder' and trashed=false",
'teamDriveId': '123456',
'supportsAllDrives': True,
'corpora': 'drive',
'includeItemsFromAllDrives': True
}).GetList()
/* test personal folder
file_list = drive.ListFile({
'q': "mimeType='application/vnd.google-apps.folder' and trashed=false and '45678' in parents"
}).GetList()
*/
for file1 in file_list:
print('title: %s, id: %s, permissions: %s' % (file1['title'], file1['id'], file1.GetPermissions()))
--------------------------------
Authentication successful.
title: test2, id: 1_123456, permissions: None
title: test, id: abcdef, permissions: None`
Thanks.
from pydrive2.
I'm trying to fix it here - #79
from pydrive2.
@musicalmarc could you please give it a try #79 ? you could install from a branch with pip.
from pydrive2.
Hi, it works perfectly. Thanks so much, I learned a lot from this.
from pydrive2.
@musicalmarc I've release the 1.7.2, please give it a try.
from pydrive2.
Related Issues (20)
- How to distinguish between same-named files and directories in Google Drive
- How to distinguish between same-named files and directories in Google Drive HOT 1
- A simple way of initializing a pydrive.GoogleDrive object fails when pydrive is replaced by pydrive2 HOT 1
- Cant copy the file... using service account HOT 3
- Fail to authenticate with pydrive2 to google drive HOT 4
- Access blocked: This application request is invalid HOT 1
- Is there a Google Drive file sharing feature? HOT 3
- Unable to list files with service account auth for GDriveFilesystem HOT 3
- How do I write to specific tab? HOT 1
- fetch a specific folder id by folder name HOT 4
- Missing 1.17.1 release? HOT 1
- auth: LocalWebserverAuth: fail if in non-interactive mode
- ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2427) HOT 2
- Review and fix issues with find
- Create Succesfull Authentication using Google OAuth client ID for a remote server accessible via SSH in a local machine HOT 1
- AssertionError on using fsspec with service account HOT 1
- [Q]Set Disable Download HOT 1
- Would you be interested to add type hints?
- pyopenssl is a dependency, but it does not seem to be used
- httplib2 is a direct dependency but is not added as one
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 pydrive2.