diff options
| author | Jeff Carr <[email protected]> | 2024-10-27 07:49:03 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-27 07:49:03 -0500 |
| commit | 099363089ba70d326bd3fcf5340652be2b4a2859 (patch) | |
| tree | 3efa0aa818b98b050e358b445038f8466c0dc9e9 /backup.go | |
| parent | eba6f5c1883014558baffbe97be9e24ee9453c44 (diff) | |
try to actually make real files
Signed-off-by: Jeff Carr <[email protected]>
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()) |
