code: func (daemon *Daemon) containerStatPath(container *container.Container, path string) (stat *types.ContainerPathStat, err error) {
  	container.Lock()
  	defer container.Unlock()
  
  	if err = daemon.Mount(container); err != nil {
  		return nil, err
  	}
  	defer daemon.Unmount(container)
  
  	err = daemon.mountVolumes(container)
  	defer container.DetachAndUnmount(daemon.LogVolumeEvent)
  	if err != nil {
  		return nil, err
  	}
  
  	// Normalize path before sending to rootfs
  	path = container.BaseFS.FromSlash(path)
  
  	resolvedPath, absPath, err := container.ResolvePath(path)
  	if err != nil {
  		return nil, err
  	}
  
  	return container.StatPath(resolvedPath, absPath)
  }
docs: // containerStatPath stats the filesystem resource at the specified path in this
  // container. Returns stat info about the resource.