MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / checkConn

Method checkConn

drivers/smb/util.go:54–62  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

52}
53
54func (d *SMB) checkConn(ctx context.Context) error {
55 if time.Since(d.getLastConnTime()) < 5*time.Minute {
56 return nil
57 }
58 if d.fs != nil {
59 _ = d.fs.Umount()
60 }
61 return d.initFS(ctx)
62}
63
64// CopyFile File copies a single file from src to dst
65func (d *SMB) CopyFile(src, dst string) error {

Callers 9

ListMethod · 0.95
LinkMethod · 0.95
MakeDirMethod · 0.95
MoveMethod · 0.95
RenameMethod · 0.95
CopyMethod · 0.95
RemoveMethod · 0.95
PutMethod · 0.95
GetDetailsMethod · 0.95

Calls 2

getLastConnTimeMethod · 0.95
initFSMethod · 0.95

Tested by

no test coverage detected