Lines Matching refs:h
94 func (h *FileHeader) FileInfo() os.FileInfo {
95 return headerFileInfo{h}
179 func (h *FileHeader) ModTime() time.Time {
180 return msDosTimeToTime(h.ModifiedDate, h.ModifiedTime)
185 func (h *FileHeader) SetModTime(t time.Time) {
186 h.ModifiedDate, h.ModifiedTime = timeToMsDosTime(t)
209 func (h *FileHeader) Mode() (mode os.FileMode) {
210 switch h.CreatorVersion >> 8 {
212 mode = unixModeToFileMode(h.ExternalAttrs >> 16)
214 mode = msdosModeToFileMode(h.ExternalAttrs)
216 if len(h.Name) > 0 && h.Name[len(h.Name)-1] == '/' {
223 func (h *FileHeader) SetMode(mode os.FileMode) {
224 h.CreatorVersion = h.CreatorVersion&0xff | creatorUnix<<8
225 h.ExternalAttrs = fileModeToUnixMode(mode) << 16
229 h.ExternalAttrs |= msdosDir
232 h.ExternalAttrs |= msdosReadOnly