MCPcopy
hub / github.com/rclone/rclone / DirSetModTime

Method DirSetModTime

backend/crypt/crypt.go:614–620  ·  view source on GitHub ↗

DirSetModTime sets the directory modtime for dir

(ctx context.Context, dir string, modTime time.Time)

Source from the content-addressed store, hash-verified

612
613// DirSetModTime sets the directory modtime for dir
614func (f *Fs) DirSetModTime(ctx context.Context, dir string, modTime time.Time) error {
615 do := f.Fs.Features().DirSetModTime
616 if do == nil {
617 return fs.ErrorNotImplemented
618 }
619 return do(ctx, f.cipher.EncryptDirName(dir), modTime)
620}
621
622// Rmdir removes the directory (container, bucket) if empty
623//

Callers

nothing calls this directly

Calls 2

EncryptDirNameMethod · 0.80
FeaturesMethod · 0.65

Tested by

no test coverage detected