s3sync

package
v0.0.0-...-48565d0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeepEmptyDirs

func KeepEmptyDirs(path string) ([]byte, error)

KeepEmptyDirs fills empty directories with .keep file. This is useful for syncing empty directories in S3. S3 is an object storage which does not have a concept of the empty directory. https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html

Types

type SyncCmd

type SyncCmd struct {
	BucketURI      string
	LocalPath      string
	Delete         bool
	FollowSymlinks bool
	OnlyShowErrors bool
}

func New

func New(bucketName, localPath string, delete, follow bool) *SyncCmd

func (SyncCmd) ComposeCmd

func (sc SyncCmd) ComposeCmd() string

func (SyncCmd) Run

func (sc SyncCmd) Run() ([]byte, error)

Run executes composed `aws s3 sync` command.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL