Skip to content

Commit

Permalink
fixed directory bug
Browse files Browse the repository at this point in the history
  • Loading branch information
shtayeb committed Dec 11, 2023
1 parent 39f55a6 commit 64b2e6b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/organizers/organize.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package organizers

import (
"fmt"
"path/filepath"
"strings"
)
Expand Down Expand Up @@ -33,11 +32,9 @@ func OrganizeFiles(path, fullFileName string) {
folderName = "Others"
}

directory := path + folderName
directory := path + "/" + folderName
oldPath := filepath.Join(path, fullFileName)
newPath := filepath.Join(directory, fullFileName)

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

moveFiles(directory, oldPath, newPath)
}

0 comments on commit 64b2e6b

Please sign in to comment.