IsExpired reports whether this share has expired.
()
| 265 | |
| 266 | // IsExpired reports whether this share has expired. |
| 267 | func (s Share) IsExpired() bool { |
| 268 | t := time.Time(s.b.ss.Expires) |
| 269 | return !t.IsZero() && clockNow().After(t) |
| 270 | } |
| 271 | |
| 272 | // A StaticFile is a Blob representing a file, symlink fifo or socket |
| 273 | // (or device file, when support for these is added). |
no outgoing calls