diff options
Diffstat (limited to 'backup.go')
| -rw-r--r-- | backup.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -7,6 +7,7 @@ import ( "errors" "fmt" "io" + "log" "os" "path/filepath" ) @@ -27,10 +28,11 @@ func backupFiles(srcDir string, destDir string) error { // Iterate over the entries in the source directory for _, entry := range entries { // Skip directories and files that do not have the .test extension - if entry.IsDir() || filepath.Ext(entry.Name()) != ".test" { + if entry.IsDir() { continue } + log.Println("backing up file", entry.Name()) srcPath := filepath.Join(srcDir, entry.Name()) destPath := filepath.Join(destDir, entry.Name()) |
