Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Dec 21, 2023
1 parent 1a29b64 commit ea6f577
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cli/disk/ftp.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package disk
import (
"bytes"
"fmt"
"github.com/davecgh/go-spew/spew"
"io"
"log/slog"
"net/url"
Expand All @@ -12,6 +11,7 @@ import (
"sync"
"time"

"github.com/davecgh/go-spew/spew"
"github.com/jlaffaye/ftp"
)

Expand Down Expand Up @@ -108,9 +108,8 @@ 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 {

lock, _ := l.ReadDirLock(filepath.Dir(path), false)
spew.Dump(lock)
d, _ := l.ReadDirLock(filepath.Dir(path), false)
slog.Debug("failed dir listing", slog.String("data", spew.Sdump(d)))

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

0 comments on commit ea6f577

Please sign in to comment.