Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Update helpers.go
Browse files Browse the repository at this point in the history
  • Loading branch information
JensvandeWiel committed Nov 10, 2023
1 parent ee1f786 commit c340337
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ func CheckServerPorts(server *Server) error {
}

func CopyAndMakeOld(path string) error {
println("bob")
if _, err := os.Stat(path); os.IsNotExist(err) {
// File does not exist, return nil
return nil
}
// Open the source file
originalFile, err := os.Open(path)
if err != nil {
Expand Down

0 comments on commit c340337

Please sign in to comment.