DEV Community

Miller Correa
Miller Correa

Posted on • Edited on

2

Estructura de carpetas visual Google Drive

Objetivo

Una de las mejores maneras para entender algun tipo de estructura organizativa, corresponde a los graficos. A dia de hoy Google Drive no cuenta con las herramientas para visualizar graficamente una estructura de carpetas. En sistemas unix existe el comando treeel cual nos permite mostrar de manera gráfica y de forma estructurada la jerarquía de los directorios de nuestro sistema operativo.

Y como logramos tener esta estructura visual en Google Drive?

Avances encontrados

Actualmente se tienen algunas iniciativas las cuales utilizan Google Apps Script para generar un Tree View.

Posible mejora

Se sugiere utilizar la tecnolog[ia de Mermaid para generar graficos en MarkDown a traves de la estructura generada por el Script de Google y obtener una representaci[on visual de la estructura de carpetas.

flowchart LR
    A[Hard edge] -->|Link text| B(Round edge)
    B --> C{Decision}
    C -->|One| D[Result one]
    C -->|Two| E[Result two]
Enter fullscreen mode Exit fullscreen mode

En Notion se veria algo asi

Image description

Otra opción más avanzada

Se puede utilizar la API de https://app.diagrams.net/ para crear un grafico que incluya los enlaces a cada uno de las carpetas y podamos navegar de manera m[as rapida.

Si bien diagrams no tiene API si puede usar una herramienta para manipular los diagramas de diagrams.net https://stackoverflow.com/questions/70543817/is-there-draw-io-api-to-manipulate-diagrams

Solución definitiva

Rclone nos proporciona el comando Tree

$ rclone tree remote:path
/
├── file1
├── file2
├── file3
└── subdir
    ├── file4
    └── file5

1 directories, 5 files
Enter fullscreen mode Exit fullscreen mode

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay