简体   繁体   中英

Google Drive Url System Design

I noticed this behavior on Google Drive.

When a link is created for a file on Google Drive, the link is valid until the file is deleted.

Moving the file to another folder(s) does not affect the behavior of url.

I will like to understand how they achieved this at scale.

This is an expected behavior when moving files to another folder within your google drive. This is because a google file URL is usually composed of the following:

  • product domain在此处输入图像描述
  • product在此处输入图像描述
  • document Id在此处输入图像描述

Therefore, moving the file to another folder within the google drive will not affect the file URL because file path is not included in the URL format.

References:

  1. Google Sheets API Overview
  2. Docs API

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM