Skip to content

Commit

Permalink
Try to fix hidden file/folder check
Browse files Browse the repository at this point in the history
  • Loading branch information
brikis98 committed Jul 31, 2018
1 parent 9be09d6 commit 0bdb5f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func CopyFolderContents(source string, destination string) error {
src := filepath.Join(source, file.Name())
dest := filepath.Join(destination, file.Name())

if PathContainsHiddenFileOrFolder(src) {
if PathContainsHiddenFileOrFolder(file.Name()) {
continue
} else if file.IsDir() {
if err := os.MkdirAll(dest, file.Mode()); err != nil {
Expand Down

0 comments on commit 0bdb5f9

Please sign in to comment.