mirror of
https://github.com/containers/podman.git
synced 2025-11-29 01:28:22 +08:00
Fix deprecation notice to make gocritic happy.
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
This commit is contained in:
@@ -1202,6 +1202,7 @@ func LookupUser(name string) (*user.User, error) {
|
||||
|
||||
// SizeOfPath determines the file usage of a given path. it was called volumeSize in v1
|
||||
// and now is made to be generic and take a path instead of a libpod volume
|
||||
//
|
||||
// Deprecated: use github.com/containers/storage/pkg/directory.Size() instead.
|
||||
func SizeOfPath(path string) (uint64, error) {
|
||||
size, err := directory.Size(path)
|
||||
|
||||
Reference in New Issue
Block a user