Fs represents a wrapped fs.Fs
| 317 | |
| 318 | // Fs represents a wrapped fs.Fs |
| 319 | type Fs struct { |
| 320 | fs.Fs |
| 321 | wrapper fs.Fs |
| 322 | |
| 323 | name string |
| 324 | root string |
| 325 | opt Options // parsed options |
| 326 | features *fs.Features // optional features |
| 327 | cache *Persistent |
| 328 | tempFs fs.Fs |
| 329 | |
| 330 | lastChunkCleanup time.Time |
| 331 | cleanupMu sync.Mutex |
| 332 | rateLimiter *rate.Limiter |
| 333 | plexConnector *plexConnector |
| 334 | backgroundRunner *backgroundWriter |
| 335 | cleanupChan chan bool |
| 336 | parentsForgetFn []func(string, fs.EntryType) |
| 337 | notifiedRemotes map[string]bool |
| 338 | notifiedMu sync.Mutex |
| 339 | parentsForgetMu sync.Mutex |
| 340 | } |
| 341 | |
| 342 | // parseRootPath returns a cleaned root path and a nil error or "" and an error when the path is invalid |
| 343 | func parseRootPath(path string) (string, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected