Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

258 B
Raw Blame
//go:build linux || darwin || freebsd || netbsd || openbsd || plan9 || solaris || zos

package util

import (
	"os"
	"syscall"
)

func GetFileUidGid(fi os.FileInfo) (uid, gid uint32) {
	return fi.Sys().(*syscall.Stat_t).Uid, fi.Sys().(*syscall.Stat_t).Gid
}