Skip to content

Commit

Permalink
added logs
Browse files Browse the repository at this point in the history
  • Loading branch information
shtayeb committed Dec 11, 2023
1 parent f8bcd17 commit 39f55a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/organizers/organize.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package organizers

import (
"fmt"
"path/filepath"
"strings"
)
Expand Down Expand Up @@ -36,5 +37,7 @@ func OrganizeFiles(path, fullFileName string) {
oldPath := filepath.Join(path, fullFileName)
newPath := filepath.Join(directory, fullFileName)

fmt.Printf("New Path: %s \n", newPath)

moveFiles(directory, oldPath, newPath)
}
2 changes: 2 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ var rootCmd = &cobra.Command{

path, _ := os.Getwd()

fmt.Printf("Working Direcotry: %s", path)

// Get list of files in the working directory
entries, err := os.ReadDir(path)

Expand Down

0 comments on commit 39f55a6

Please sign in to comment.