files

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileSizeInMB

func FileSizeInMB(name string) (float64, error)

FileSizeInMB returns the size of the file in MB

func LastModifiedTime

func LastModifiedTime(name string) (time.Time, error)

LastModifiedTime returns the last modification time of file

func PrepareName

func PrepareName(name string, t time.Time) string

PrepareName prepares new name for the file

func RenameFile

func RenameFile(oldName, newName string) error

RenameFile renames the file

func SplitFile

func SplitFile(name string) error

SplitFile checks if file size is greater than 1MB, and if so, renames it

Types

This section is empty.

Jump to

Keyboard shortcuts

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