init(_:relativeTo:flags:retryOnInterrupt:)
Creates a Stat struct from a FilePath and Flags, including a FileDescriptor to resolve a relative path.
Declaration
init(_ path: FilePath, relativeTo fd: FileDescriptor, flags: Stat.Flags, retryOnInterrupt: Bool = true) throws(Errno)Discussion
If path is absolute (starts with a forward slash), then fd is ignored. If path is relative, it is resolved against the directory given by fd.
The corresponding C function is fstatat().