diff options
| author | Paul Buetow <paul@buetow.org> | 2024-10-02 11:14:02 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-10-02 11:14:02 +0300 |
| commit | d5edaafc454dffd50cac1fed3cf03fbe9a05c50c (patch) | |
| tree | 8f1ffc84616899674f813d04e99a44e0b005f5f4 | |
| parent | 6aa48faba934c37e012c1f9d0c09e9ed6f6739c0 (diff) | |
add comment what to do next
| -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 |
