| 21 | var ErrClosedClient = errors.New("use of closed fs client") |
| 22 | |
| 23 | type Client struct { |
| 24 | sync.Mutex |
| 25 | |
| 26 | RootDir string |
| 27 | DataDir string |
| 28 | TempDir string |
| 29 | LockFile string |
| 30 | |
| 31 | lockfd *os.File |
| 32 | closed bool |
| 33 | } |
| 34 | |
| 35 | func New(dir string) (*Client, error) { |
| 36 | fullpath, err := filepath.Abs(dir) |
nothing calls this directly
no outgoing calls
no test coverage detected