pkg/idtools: MkdirAllAndChownNew: improve deprecation message

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-04-06 12:21:49 +02:00
parent 6cbca96bfa
commit a427477220

View File

@@ -41,7 +41,7 @@ func MkdirAndChown(path string, mode os.FileMode, owner Identity) error {
// ownership ONLY of newly created directories to the requested uid/gid. If the
// directories along the path exist, no change of ownership or permissions will be performed
//
// Deprecated: use [user.MkdirAllAndChown] instead.
// Deprecated: use [user.MkdirAllAndChown] with the [user.WithOnlyNew] option instead.
func MkdirAllAndChownNew(path string, mode os.FileMode, owner Identity) error {
return user.MkdirAllAndChown(path, mode, owner.UID, owner.GID, user.WithOnlyNew)
}