diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-03-19 01:31:49 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-03-19 01:31:49 -0700 |
| commit | b1a86cf8085d5f0aff27f7ff6e3b8a7d666f766b (patch) | |
| tree | a8acbba3be8543777d6b8c31dfc247a154d6de5e /weed/s3api/filer_util.go | |
| parent | aa5179ce3c5ad92887dcddaa59a7f17868fb5bb2 (diff) | |
| download | seaweedfs-b1a86cf8085d5f0aff27f7ff6e3b8a7d666f766b.tar.xz seaweedfs-b1a86cf8085d5f0aff27f7ff6e3b8a7d666f766b.zip | |
s3: copy object to itself
fix https://github.com/chrislusf/seaweedfs/issues/1922
Diffstat (limited to 'weed/s3api/filer_util.go')
| -rw-r--r-- | weed/s3api/filer_util.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/weed/s3api/filer_util.go b/weed/s3api/filer_util.go index 12a74126a..1803332a3 100644 --- a/weed/s3api/filer_util.go +++ b/weed/s3api/filer_util.go @@ -79,6 +79,12 @@ func (s3a *S3ApiServer) exists(parentDirectoryPath string, entryName string, isD } +func (s3a *S3ApiServer) touch(parentDirectoryPath string, entryName string, entry *filer_pb.Entry) (err error) { + + return filer_pb.Touch(s3a, parentDirectoryPath, entryName, entry) + +} + func (s3a *S3ApiServer) getEntry(parentDirectoryPath, entryName string) (entry *filer_pb.Entry, err error) { fullPath := util.NewFullPath(parentDirectoryPath, entryName) return filer_pb.GetEntry(s3a, fullPath) |
