folder

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2025 License: AGPL-3.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFromFolderCommand added in v0.29.0

func NewFromFolderCommand(ctx context.Context, parent *cobra.Command, app *app.Application, runner adapters.Runner) *cobra.Command

func NewFromICloudCommand added in v0.29.0

func NewFromICloudCommand(ctx context.Context, parent *cobra.Command, app *app.Application, runner adapters.Runner) *cobra.Command

func NewFromPicasaCommand added in v0.29.0

func NewFromPicasaCommand(ctx context.Context, parent *cobra.Command, app *app.Application, runner adapters.Runner) *cobra.Command

func UseICloudAlbum added in v0.25.0

func UseICloudAlbum(m *gen.SyncMap[string, iCloudMeta], fsys fs.FS, filename string) (string, error)

func UseICloudMemory added in v0.25.3

func UseICloudMemory(m *gen.SyncMap[string, iCloudMeta], fsys fs.FS, filename string) (string, error)

func UseICloudPhotoDetails added in v0.25.0

func UseICloudPhotoDetails(m *gen.SyncMap[string, iCloudMeta], fsys fs.FS, filename string) error

Example: imgName,fileChecksum,favorite,hidden,deleted,originalCreationDate,viewCount,importDate IMG_7938.HEIC,AfQj57ORF2JIumUCjO+PawZ9nqPg,no,no,no,"Saturday June 4,2022 12:11 PM GMT",10,"Saturday June 4,2022 12:11 PM GMT"

Types

type AlbumFolderMode

type AlbumFolderMode string
const (
	FolderModeNone   AlbumFolderMode = "NONE"
	FolderModeFolder AlbumFolderMode = "FOLDER"
	FolderModePath   AlbumFolderMode = "PATH"
)

func (AlbumFolderMode) MarshalJSON added in v0.29.0

func (m AlbumFolderMode) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (AlbumFolderMode) MarshalText added in v0.29.0

func (m AlbumFolderMode) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler

func (AlbumFolderMode) MarshalYAML added in v0.29.0

func (m AlbumFolderMode) MarshalYAML() (interface{}, error)

MarshalYAML implements yaml.Marshaler

func (*AlbumFolderMode) Set

func (m *AlbumFolderMode) Set(v string) error

func (AlbumFolderMode) String

func (m AlbumFolderMode) String() string

func (AlbumFolderMode) Type

func (m AlbumFolderMode) Type() string

func (*AlbumFolderMode) UnmarshalJSON added in v0.29.0

func (m *AlbumFolderMode) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*AlbumFolderMode) UnmarshalText added in v0.29.0

func (m *AlbumFolderMode) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler

func (*AlbumFolderMode) UnmarshalYAML added in v0.29.0

func (m *AlbumFolderMode) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler

type ImportFolderCmd added in v0.29.0

type ImportFolderCmd struct {
	// CLI flags
	UsePathAsAlbumName     AlbumFolderMode
	AlbumNamePathSeparator string
	ImportIntoAlbum        string
	BannedFiles            namematcher.List
	Recursive              bool
	InclusionFlags         cliflags.InclusionFlags
	IgnoreSideCarFiles     bool
	FolderAsTags           bool
	TakeDateFromFilename   bool
	PicasaAlbum            bool
	ICloudTakeout          bool
	ICloudMemoriesAsAlbums bool
	shared.StackOptions
	// contains filtered or unexported fields
}

ImportFolderCmd represents the flags used for importing assets from a file system.

func (*ImportFolderCmd) Browse added in v0.29.0

func (ifc *ImportFolderCmd) Browse(ctx context.Context) chan *assets.Group

func (*ImportFolderCmd) RegisterFlags added in v0.29.0

func (ifc *ImportFolderCmd) RegisterFlags(flags *pflag.FlagSet, cmd *cobra.Command)

type LocalAssetWriter

type LocalAssetWriter struct {
	WriteToFS fs.FS
	// contains filtered or unexported fields
}

func NewLocalAssetWriter

func NewLocalAssetWriter(fsys fs.FS, writeToPath string) (*LocalAssetWriter, error)

func (*LocalAssetWriter) WriteAsset

func (w *LocalAssetWriter) WriteAsset(ctx context.Context, a *assets.Asset) error

func (*LocalAssetWriter) WriteGroup

func (w *LocalAssetWriter) WriteGroup(ctx context.Context, group *assets.Group) error

type PicasaAlbum

type PicasaAlbum struct {
	Name        string
	Description string
}

func ReadPicasaIni

func ReadPicasaIni(fsys fs.FS, filename string) (PicasaAlbum, error)

Jump to

Keyboard shortcuts

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