Sakthi Ganesh
Sakthi Ganesh

Reputation: 115

Creating symbolic link in google cloud storage using java API

I am using JSON API - Google API Client Library for Java for reading the objects from Google Cloud Storage. I need to create a symbolic link for in the Bucket's internal content.

EX:
Assume that, the Bucket Contents will be like this
FolderA/
FolderA/FolderB/
FolderC/
--------------------------
I need to create a link like this
FolderC/ should point to FolderA/FolderB/
FolderC/-> FolderA/FolderB/

If anybody knows how to create symbolic links using the Java in Cloud Bucket, Please let me know.
(Note: without mounting the bucket in local filesystem)

Thanks in advance...

Upvotes: 5

Views: 7692

Answers (1)

konqi
konqi

Reputation: 5227

You can't. See An object in Google Cloud Storage which acts as a “redirect” or “symlink”.

When you create a symlink in a mounted folder, you will upload a copy to cloud storage. If you change either you will have inconsistencies.

Upvotes: 6

Related Questions