diff --git a/control.go b/control.go index eeccb4f..e3ed683 100644 --- a/control.go +++ b/control.go @@ -624,6 +624,11 @@ type ControlDirSync struct { Cookie []byte } +// @deprecated Use NewRequestControlDirSync instead +func NewControlDirSync(flags int64, maxAttrCount int64, cookie []byte) *ControlDirSync { + return NewRequestControlDirSync(flags, maxAttrCount, cookie) +} + // NewRequestControlDirSync returns a dir sync control func NewRequestControlDirSync( flags int64, maxAttrCount int64, cookie []byte, diff --git a/v3/control.go b/v3/control.go index 2cad750..60453de 100644 --- a/v3/control.go +++ b/v3/control.go @@ -635,6 +635,11 @@ type ControlDirSync struct { Cookie []byte } +// @deprecated Use NewRequestControlDirSync instead +func NewControlDirSync(flags int64, maxAttrCount int64, cookie []byte) *ControlDirSync { + return NewRequestControlDirSync(flags, maxAttrCount, cookie) +} + // NewRequestControlDirSync returns a dir sync control func NewRequestControlDirSync( flags int64, maxAttrCount int64, cookie []byte,