diff options
| -rw-r--r-- | internal/entry/entry.go | 10 | ||||
| -rw-r--r-- | internal/oi/oi.go | 1 |
2 files changed, 1 insertions, 10 deletions
diff --git a/internal/entry/entry.go b/internal/entry/entry.go index 91ed8e0..6934eba 100644 --- a/internal/entry/entry.go +++ b/internal/entry/entry.go @@ -45,16 +45,6 @@ func (e Entry) String() string { var Zero = Entry{} -// TODO: UNDO -// func New(filePath string) (Entry, error) { -// ent, err := new(filePath) -// if err != nil { -// panic(fmt.Sprintf("%s: %v", filePath, err)) -// } -// log.Println("Creating new entry from", filePath, ent) -// return ent, err -// } - // filePath format: /foo/foobarbaz.something.here.txt.STAMP.{posted,queued} func New(filePath string) (Entry, error) { e := Entry{Path: filePath} diff --git a/internal/oi/oi.go b/internal/oi/oi.go index 1f7de6d..1716082 100644 --- a/internal/oi/oi.go +++ b/internal/oi/oi.go @@ -48,6 +48,7 @@ func ReadDirCh[T any](dir string, cb func(file os.DirEntry) (T, bool)) (chan T, return ch, nil } +// TODO: Refactor to use ReadDirCh internally func TraverseDir(dir string, cb func(file os.DirEntry) error) error { if err := EnsureDir(dir); err != nil { return err |
