How gcsfuse identifies if a GCS object is file or directory? #2267
-
I would like to understand - how gcsfuse detects if a GCS object is file or directory. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Let's first understand the important terminologies: (a) Explicit Directory - GCSFuse treats an object with trailing delimiter (/) as explicit directory. If you create a directory via GCSFuse it creates an object in GCS with trailing delimiter (/). E.g. - a/b/c/ (b) File - GCSFuse treats an object without trailing delimiter (/) as a file. E.g. - a/b/c/d.txt (c) Implicit Directory - GCSFuse infers the existence of implicit directory if there are objects within a "path" that share a common prefix. E.g. If a bucket contains only one object a/b/c/d.txt, GCSFuse treats GCSFuse only understand the concept of implicit directory when bucket is mounted with CASE 1: if bucket is mounted without E.g. To know if
CASE 2: if bucket is mounted with E.g. To know if
Summary: |
Beta Was this translation helpful? Give feedback.
Let's first understand the important terminologies:
(a) Explicit Directory - GCSFuse treats an object with trailing delimiter (/) as explicit directory. If you create a directory via GCSFuse it creates an object in GCS with trailing delimiter (/). E.g. - a/b/c/
(b) File - GCSFuse treats an object without trailing delimiter (/) as a file. E.g. - a/b/c/d.txt
(c) Implicit Directory - GCSFuse infers the existence of implicit directory if there are objects within a "path" that share a common prefix. E.g. If a bucket contains only one object a/b/c/d.txt, GCSFuse treats
a/
,a/b
, anda/b/c/
as implicit directories.GCSFuse only understand the concept of implicit directory when bucket is mounted with