content

package
v0.0.0-...-cfc067a Latest Latest
Warning

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

Go to latest
Published: May 20, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	Path string
	// Should the content be deleted from disk after transferring? This is true
	// only if the content has been zipped by qr-filetransfer
	ShouldBeDeleted bool
}

Content represents the content to be transferred

func Get

func Get(args []string) (Content, error)

Get returns an instance of Content and an error

func (*Content) Delete

func (c *Content) Delete() error

Delete the file from disk

func (*Content) Name

func (c *Content) Name() string

Name returns the base name of the content being transferred

Jump to

Keyboard shortcuts

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