Skip to content

Commit

Permalink
fmt: onfileindir (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesread committed Apr 26, 2024
1 parent ceb215a commit 6a16a7c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/onfileindir/fileindir.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package onfileindir

import (
"fmt"
"github.com/OliveTin/OliveTin/internal/acl"
"github.com/OliveTin/OliveTin/internal/config"
"github.com/OliveTin/OliveTin/internal/executor"
"github.com/OliveTin/OliveTin/internal/filehelper"
"path/filepath"
"os"
"fmt"
"path/filepath"
)

func WatchFilesInDirectory(cfg *config.Config, ex *executor.Executor) {
Expand All @@ -30,8 +30,8 @@ func scheduleExec(action *config.Action, cfg *config.Config, ex *executor.Execut
args := map[string]string{
"filepath": path,
"filename": filepath.Base(path),
"filedir": filepath.Dir(path),
"fileext": filepath.Ext(path),
"filedir": filepath.Dir(path),
"fileext": filepath.Ext(path),
}

if stat, err := os.Stat(path); err == nil {
Expand All @@ -47,7 +47,7 @@ func scheduleExec(action *config.Action, cfg *config.Config, ex *executor.Execut
ActionTitle: action.Title,
Cfg: cfg,
Tags: []string{"fileindir"},
Arguments: args,
Arguments: args,
AuthenticatedUser: &acl.AuthenticatedUser{
Username: "fileindir",
},
Expand Down

0 comments on commit 6a16a7c

Please sign in to comment.