Recipe Organize Drive Folder

by googleworkspacea3768d0e82adNo license31K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated yesterday

Create a Google Drive folder structure and move files into the right locations.

Instructions onlyProductivity & Workflow
AI-generated overview

Creates a Google Drive folder structure and moves existing files into the correct folders.

What it does
This recipe walks through building a Google Drive folder hierarchy, starting with a top-level project folder and then sub-folders such as Documents. It then moves existing files into the target folders by updating their parent references, and finishes by listing the folder contents to verify the resulting structure. It is an instruction-only recipe with no bundled scripts.
When to use it
Use it when you need to set up an organized Google Drive folder layout for a project and relocate existing files into it. It suits cleanup or onboarding tasks where files are scattered and should be grouped under a defined hierarchy.
Requirements
Requires the gws command-line tool and the gws-drive skill to be loaded; it also needs access to Google Drive with the relevant file and folder IDs. No scripts are shipped.

Organize Files into Google Drive Folders

PREREQUISITE: Load the following skills to execute this recipe: gws-drive

Create a Google Drive folder structure and move files into the right locations.

Steps

  1. Create a project folder: gws drive files create --json '{"name": "Q2 Project", "mimeType": "application/vnd.google-apps.folder"}'
  2. Create sub-folders: gws drive files create --json '{"name": "Documents", "mimeType": "application/vnd.google-apps.folder", "parents": ["PARENT_FOLDER_ID"]}'
  3. Move existing files into folder: gws drive files update --params '{"fileId": "FILE_ID", "addParents": "FOLDER_ID", "removeParents": "OLD_PARENT_ID"}'
  4. Verify structure: gws drive files list --params '{"q": "FOLDER_ID in parents"}' --format table

Source and attribution

Source:googleworkspace/cliinskills/recipe-organize-drive-folderat commita3768d0

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal