Code Monkey home page Code Monkey logo

Comments (8)

Paraka321 avatar Paraka321 commented on June 12, 2024

I have not had this issue. Do you have an example of what was expected, what was encountered, and which screen or view in Google you are viewing this on?

from google-drive-recursive-ownership.

Nottt avatar Nottt commented on June 12, 2024

I was expecting 3 root folders in the account I was transferring the files.

But it appears your script is "symlink" them in the web interface, and the subfolders of the root folders also appear on the web interface as another root folders. The files inside also appear without being inside any folder.

http://imgur.com/a/l7msq

My files are encrypted so that's why they are like this.

But there should be only 3 folders here after changing the ownership. If I select a file or folder you'll see they appear to have multiple locations. I found that this is mostly a "visual" issue as the original folder structure is still preserved but it's like it was created symlinks of it in other places.

from google-drive-recursive-ownership.

davidstrauss avatar davidstrauss commented on June 12, 2024

There are no strict hierarchies or symlinks in Google Drive. There is only the multi-hierarchy of folders and files/objects. A file in two folders is equally in both. To my knowledge, the script only shares and changes ownership of folders, files, and objects in Drive. It does not intentionally move anything, nor can it control the layout experienced by the new owner.

It's probably possible to extend the script to save the original hierarchy and then apply it to the new owner's account, but the account giving away ownership can't do that on its own.

from google-drive-recursive-ownership.

Nottt avatar Nottt commented on June 12, 2024

But why do you think this happening? They aren't like that in the account I'm transferring.

from google-drive-recursive-ownership.

davidstrauss avatar davidstrauss commented on June 12, 2024

Google is probably throwing newly owned items into the root of the new owner's Drive, though they should also appear in the original shared folders as well.

from google-drive-recursive-ownership.

Nottt avatar Nottt commented on June 12, 2024

Is there anything we can do? With encrypted files this can be a pain?

from google-drive-recursive-ownership.

davidstrauss avatar davidstrauss commented on June 12, 2024

Nothing to do with encrypted files. My only suggestion is export of the original hierarchy followed by restoration (via API) in the new owner's account. You could also try moving the items to a Team Drive and then from one; I believe that will coerce ownership.

from google-drive-recursive-ownership.

Nottt avatar Nottt commented on June 12, 2024

I was saying that with encrypted files it's a hassle to use the webUI to organize them. However I found a workaround.

You need to share the folder file and move it to where you want to be, then you use the script to change recursively the files

from google-drive-recursive-ownership.

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.