Skip to content

Commit

Permalink
Do not strip directory path
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Jan 16, 2022
1 parent 447822f commit e28bb50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

func cleanPath(path string, dirPath string) string {
trimmed := strings.Trim(strings.ReplaceAll(filepath.Clean(dirPath), "\\", "/"), "/")
trimmed := strings.ReplaceAll(filepath.Clean(dirPath), "\\", "/")
toRemove := len(strings.Split(trimmed, "/"))

if trimmed == "." || trimmed == "" {
Expand Down

0 comments on commit e28bb50

Please sign in to comment.