filesystemhelpers

package
v0.0.0-...-d400e7b Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FSToProtoFileSystem

func FSToProtoFileSystem(filesystem fs.FS, root string) (*servicev1.FileSystem, error)

FSToProtoFileSystem converts an fs.FS to a proto FileSystem so that it can be sent to the frontend. TODO should write a test for this

func WriteFSToDisk

func WriteFSToDisk(filesystem fs.FS, root string, dst string) error

WriteFSToDisk writes a filesystem to disk. It does so by recursively walking the filesystem and writing each file to disk.

root defines the starting point of the walk. It is relative to the filesystem. TODO should write a test

Types

This section is empty.

Jump to

Keyboard shortcuts

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