fileopen

package
v0.0.0-...-52a80d5 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LaunchCacheCleaner

func LaunchCacheCleaner(targetFolder string, olderThan time.Duration)

LaunchCacheCleaner clears all files in the given folder structure that are older than the given timeframe. Root-Paths are ignored for safety reasons.

func OpenFile

func OpenFile(targetFolder, fileID, downloadURL string) error

OpenFile attempts downloading and opening a file from the given link. Files are either cached locally or saved permanently. In both cases cordless attempts loading the previously downloaded version of the file. Files are saved using the ID of the attachment in order to avoid false positives when doing cache-matching.

Types

This section is empty.

Jump to

Keyboard shortcuts

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