chunker

package module
v0.0.0-...-5fa23fc Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 3 Imported by: 0

README

chunker

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chunker

type Chunker struct{}

func NewChunker

func NewChunker() Chunker

func (*Chunker) ListFilesRecursively

func (c *Chunker) ListFilesRecursively(dir string) ([]FileInfo, error)

ListFilesRecursively lists all files in a given directory and stores them in FileInfo

type FileInfo

type FileInfo struct {
	Filename string
	Size     int64
}

FileInfo struct to hold details about each file

func (*FileInfo) IsDotFile

func (f *FileInfo) IsDotFile() bool

IsDotFile checks if the file is a dot file

func (*FileInfo) SizeInKB

func (f *FileInfo) SizeInKB() float64

SizeInKB returns the file size in kilobytes

func (*FileInfo) SizeInMB

func (f *FileInfo) SizeInMB() float64

SizeInMB returns the file size in megabytes

Jump to

Keyboard shortcuts

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