Code Monkey home page Code Monkey logo

Comments (3)

cristoper avatar cristoper commented on June 6, 2024 1

Hi Vitaly,

It depends on how you are creating the files you manage with gsheet. Are you creating new files with gsheet upload that you then need to access via the browser?

If so, the workflow I recommend is to first manually create a folder in Google Drive and share that with both your service account (something like [email protected]) and any coworkers that need access. Take note of the folder id in the browser. And then have gsheet create new files in that folder:

gsheet upload --parent ...yourFolderID... FILE_NAME

Those files will then be accessible in Google Drive to everybody.

If you just use gsheet upload without specifying --parent then the file gets uploaded to the service worker's root directory which is not accessible via the browser. You can get the root folder ID with gsheet info file_id, but gsheet does not currently provide a way to share that folder with human users (although I'm open to implementing that).

Does that clarify things?

from gsheet.

vitalyk-multinarity avatar vitalyk-multinarity commented on June 6, 2024

Thank you @cristoper.

the workflow I recommend is to first manually create a folder in Google Drive and share that with both your service account (something like [email protected]) and any coworkers that need access.

This makes sense, I'll try it.

Vitaly

from gsheet.

cristoper avatar cristoper commented on June 6, 2024

Let me know if you run into any issues. It can be annoying to have to pass the --parent id all the time, but you can instead set it once in the GSHEET_PARENT environment variable.

from gsheet.

Related Issues (6)

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.