Skip to content

Commit

Permalink
chore: add debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Dec 21, 2023
1 parent 07e656a commit 1a29b64
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cli/disk/ftp.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package disk
import (
"bytes"
"fmt"
"github.com/davecgh/go-spew/spew"

Check failure on line 6 in cli/disk/ftp.go

View workflow job for this annotation

GitHub Actions / Lint

File is not `gci`-ed with --skip-generated -s standard -s default -s prefix(github.com/satisfactorymodding/ficsit-cli) -s blank -s dot --custom-order (gci)
"io"
"log/slog"
"net/url"
Expand Down Expand Up @@ -107,6 +108,10 @@ func (l *ftpDisk) Write(path string, data []byte) error {

slog.Debug("writing to file", slog.String("path", path), slog.String("schema", "ftp"))
if err := l.client.Stor(path, bytes.NewReader(data)); err != nil {

Check failure on line 110 in cli/disk/ftp.go

View workflow job for this annotation

GitHub Actions / Lint

unnecessary leading newline (whitespace)

lock, _ := l.ReadDirLock(filepath.Dir(path), false)
spew.Dump(lock)

return fmt.Errorf("failed to write file: %w", err)
}

Expand Down

0 comments on commit 1a29b64

Please sign in to comment.