MCPcopy
hub / github.com/AlistGo/alist / MakeDir

Method MakeDir

drivers/ftp/driver.go:74–79  ·  view source on GitHub ↗
(ctx context.Context, parentDir model.Obj, dirName string)

Source from the content-addressed store, hash-verified

72}
73
74func (d *FTP) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error {
75 if err := d.login(); err != nil {
76 return err
77 }
78 return d.conn.MakeDir(encode(stdpath.Join(parentDir.GetPath(), dirName), d.Encoding))
79}
80
81func (d *FTP) Move(ctx context.Context, srcObj, dstDir model.Obj) error {
82 if err := d.login(); err != nil {

Callers

nothing calls this directly

Calls 4

loginMethod · 0.95
encodeFunction · 0.70
MakeDirMethod · 0.65
GetPathMethod · 0.65

Tested by

no test coverage detected