filesystem

package
v0.0.0-...-2d1a207 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: CC0-1.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertBasePaths

func AssertBasePaths()
func CreateSymlink(original, new string) error

func Exists

func Exists(filepath string) bool

func GetBasePath

func GetBasePath() string

func GetDispenseMetadataPath

func GetDispenseMetadataPath(sessionId uint64) string

func GetIncrementalFileName

func GetIncrementalFileName(outDir string, ext string) string

GetIncrementalFile considers 'outDir' and returns the **full path to** the NEXT incremental file name on disk (w/ .'ext'). E.g:

1.mp4 2.mp4 3.mp4 -> [outDir]/4.mp4

func GetKeyValueStorePath

func GetKeyValueStorePath() string

func GetLatestDslrFileNumber

func GetLatestDslrFileNumber(sessionId uint64) uint64

func GetMetadataDir

func GetMetadataDir() string

func GetPostDslrDir

func GetPostDslrDir(sessionId uint64) string

func GetRawDslrDir

func GetRawDslrDir(sessionId uint64) string

func GetRawVideoDir

func GetRawVideoDir(sessionId uint64, rtspPath string) string

GetRawVideoDir mkdirAlls the path if it doesn't exist.

e.g. 5, top-cam

func GetStateReportPath

func GetStateReportPath(sessionId uint64) string

func GetVialProfileSnapshotPath

func GetVialProfileSnapshotPath(sessionId uint64) string

func InitSessionContent

func InitSessionContent(sessionId uint64, productionId uint64) error

InitSessionContent creates a session folder on disk that content uses It also sets the 'latest' symlink to point to this session folder

func SetPerms

func SetPerms(p string)

func WriteCreationTimeUsingMetadata

func WriteCreationTimeUsingMetadata(filePath string) error

func WriteCreationTimeUsingNow

func WriteCreationTimeUsingNow(filePath string) error

func WriteProtoYaml

func WriteProtoYaml(path string, msg proto.Message) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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