()
| 305 | } |
| 306 | |
| 307 | func (c Crontab) CanonicalName() string { |
| 308 | if c.IsUserCrontab { |
| 309 | return c.DisplayName() |
| 310 | } |
| 311 | |
| 312 | if absoluteCronPath, err := filepath.Abs(c.Filename); err == nil { |
| 313 | return absoluteCronPath |
| 314 | } |
| 315 | |
| 316 | return c.DisplayName() |
| 317 | } |
| 318 | |
| 319 | func (c Crontab) IsWritable() bool { |
| 320 | if c.IsUserCrontab { |
no test coverage detected