summaryrefslogtreecommitdiff
path: root/backup.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-27 07:49:03 -0500
committerJeff Carr <[email protected]>2024-10-27 07:49:03 -0500
commit099363089ba70d326bd3fcf5340652be2b4a2859 (patch)
tree3efa0aa818b98b050e358b445038f8466c0dc9e9 /backup.go
parenteba6f5c1883014558baffbe97be9e24ee9453c44 (diff)
try to actually make real files
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'backup.go')
-rw-r--r--backup.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/backup.go b/backup.go
index 37ffee1..2834993 100644
--- a/backup.go
+++ b/backup.go
@@ -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())