func HeaderToFileInfo(out *fuse.Attr, h *tar.Header) { out.Mode = uint32(h.Mode) out.Size = uint64(h.Size) out.Uid = uint32(h.Uid) out.Gid = uint32(h.Gid) out.SetTimes(&h.AccessTime, &h.ModTime, &h.ChangeTime) }
func (f *ZipFile) Stat(out *fuse.Attr) { // TODO - do something intelligent with timestamps. out.Mode = fuse.S_IFREG | 0444 out.Size = uint64(f.File.UncompressedSize) }