organize

package
v0.0.0-...-7884ed3 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareFiles

func CompareFiles(path string, file PutIoFiles) bool

func CreateFolder

func CreateFolder(path string) bool

func GetFolderInformation

func GetFolderInformation(conf Configuration, folderName string, dir int64, folders cmap.ConcurrentMap)

func GoOrganizeFolder

func GoOrganizeFolder(foldername string, folders cmap.ConcurrentMap, conf Configuration, moveFileToFolder string) []os.FileInfo

func HandleFile

func HandleFile(putFile PutIoFiles, file os.FileInfo, foldername string, conf Configuration, removeFile bool, moveFileToFolder string)

func Read

func Read(filename string) string

func RemoveOfflineFile

func RemoveOfflineFile(path string, stats os.FileInfo) bool

func RemoveOnlineFile

func RemoveOnlineFile(conf Configuration, file PutIoFiles) bool

func Run

func Run(oauthToken string, foldername string, moveFileToFolder string)

func SetOwner

func SetOwner(pid int, gid int, path string)

Types

type Configuration

type Configuration struct {
	// contains filtered or unexported fields
}

func CreateConfiguration

func CreateConfiguration(oauthToken string, filter string) Configuration

type PutIoFiles

type PutIoFiles struct {
	PutIoID int64
	Folder  string
	Name    string
	CRC32   string
	Size    int64
}

Jump to

Keyboard shortcuts

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