file_utils

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureDir

func EnsureDir(path string) error

EnsureDir checks if a directory exists and creates it if it doesn't. This function provides additional validation compared to EnsureDirExists.

func EnsureDirExists

func EnsureDirExists(dirPath string) error

EnsureDirExists creates the target directory path if it does not exist using secure default permissions. It is safe to call multiple times.

func GetPathInCaptureDir

func GetPathInCaptureDir(subDirName string) string

func SaveFile

func SaveFile(b []byte, dirPath, filename string, t time.Time) error

func SaveImageFile

func SaveImageFile(rawImage image.Image, dirPath, filenameWithoutExtension string, t time.Time) error

func SaveJsonFile

func SaveJsonFile(data any, dirPath, filename string, t time.Time) error

func SavePointCloudFile

func SavePointCloudFile(data pointcloud.PointCloud, dirPath, filename string, t time.Time) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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