Skip to content

Commit 18f75b9

Browse files
earthboundkidbep
authored andcommitted
Walker: Fix problem with using "." as source directory
Since "." starts with a dot, it is considered a hidden directory, which means s3deploy doesn't work by default.
1 parent f09a156 commit 18f75b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/deployer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ func walk(basePath string, files chan<- file) {
293293
}
294294
if info.IsDir() {
295295
// skip hidden directories like .git
296-
if strings.HasPrefix(info.Name(), ".") {
296+
if path != basePath && strings.HasPrefix(info.Name(), ".") {
297297
return filepath.SkipDir
298298
}
299299
} else {

0 commit comments

Comments
 (0)