1
0

refactor: move fs-related functions to submodule

This commit is contained in:
2023-05-13 09:17:57 +00:00
parent 9b987bcc82
commit da5797766b
8 changed files with 63 additions and 47 deletions

View File

@@ -9,6 +9,8 @@ import (
"io/ioutil"
"time"
"code.dumpstack.io/tools/out-of-tree/fs"
"github.com/rs/zerolog/log"
)
@@ -41,7 +43,7 @@ func (cmd *PackCmd) Run(g *Globals) (err error) {
for _, f := range files {
workPath := g.WorkDir + "/" + f.Name()
if !exists(workPath + "/.out-of-tree.toml") {
if !fs.PathExists(workPath + "/.out-of-tree.toml") {
continue
}