mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
A symlink made through weed mount holds no data, so GET and HEAD answered for it as for an empty file: Content-Length 0 and a type guessed from its name. An S3 client could not tell it from an empty file, nor see where it pointed. For an entry with the symlink mode bit, send the target as user metadata, x-amz-meta-seaweedfs-symlink-target, escaped like a key under encoding-type=url, and use Content-Type inode/symlink (what file(1) reports) when none is stored. User metadata is the one place AWS has for an object's own fields, so SDKs and the AWS CLI show it as they are. The link is not followed: the target is a path on the client that made it. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>