summaryrefslogtreecommitdiff
path: root/pkg/copy/fileinfo.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-03-05 03:57:17 -0500
committerGitHub <noreply@github.com>2021-03-05 03:57:17 -0500
commit05080a12a998802570ee123a39368a0fe97e2fd2 (patch)
treee2828a62966c6d05e2d79cb7cc90ae3254279657 /pkg/copy/fileinfo.go
parent4e5cc6a3a61d9d2f1d3b97fc10684ec5617816ab (diff)
parenta090301bbb10424ce4f99e40c97959f0e8664718 (diff)
downloadpodman-05080a12a998802570ee123a39368a0fe97e2fd2.tar.gz
podman-05080a12a998802570ee123a39368a0fe97e2fd2.tar.bz2
podman-05080a12a998802570ee123a39368a0fe97e2fd2.zip
Merge pull request #9593 from vrothberg/cp-tmp
podman cp: support copying on tmpfs mounts
Diffstat (limited to 'pkg/copy/fileinfo.go')
-rw-r--r--pkg/copy/fileinfo.go11
1 files changed, 2 insertions, 9 deletions
diff --git a/pkg/copy/fileinfo.go b/pkg/copy/fileinfo.go
index b95bcd90c..fb711311c 100644
--- a/pkg/copy/fileinfo.go
+++ b/pkg/copy/fileinfo.go
@@ -7,8 +7,8 @@ import (
"os"
"path/filepath"
"strings"
- "time"
+ "github.com/containers/podman/v3/libpod/define"
"github.com/pkg/errors"
)
@@ -22,14 +22,7 @@ var ErrENOENT = errors.New("No such file or directory")
// FileInfo describes a file or directory and is returned by
// (*CopyItem).Stat().
-type FileInfo struct {
- Name string `json:"name"`
- Size int64 `json:"size"`
- Mode os.FileMode `json:"mode"`
- ModTime time.Time `json:"mtime"`
- IsDir bool `json:"isDir"`
- LinkTarget string `json:"linkTarget"`
-}
+type FileInfo = define.FileInfo
// EncodeFileInfo serializes the specified FileInfo as a base64 encoded JSON
// payload. Intended for Docker compat.