filesystem

package
v0.7.21 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2026 License: EPL-1.0 Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package filesystem exposes the core java.io.File and java.nio.file pathname surface over Go's portable os/path/filepath APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDirectories

func CreateDirectories(path any, _ ...any) any

func Delete

func Delete(path any)

func Exists

func Exists(path any, _ ...any) bool

func GetLastModifiedTime

func GetLastModifiedTime(path any) time.Time

func GetPath

func GetPath(args ...any) any

func IsDirectory

func IsDirectory(path any, _ ...any) bool

func IsRegularFile

func IsRegularFile(path any, _ ...any) bool

func NewFile

func NewFile(args ...any) any

func ReadString

func ReadString(path any, _ ...any) string

func Size

func Size(path any) int64

func WriteString

func WriteString(path, content any, _ ...any) any

Types

type File

type File struct{ Pathname string }

func CreateTempFile added in v0.7.5

func CreateTempFile(prefix, suffix any) *File

func (*File) AbsoluteFile

func (f *File) AbsoluteFile() *File

func (*File) AbsolutePath

func (f *File) AbsolutePath() string

func (*File) CanRead

func (f *File) CanRead() bool

func (*File) CanWrite

func (f *File) CanWrite() bool

func (*File) CanonicalFile

func (f *File) CanonicalFile() *File

func (*File) CanonicalPath

func (f *File) CanonicalPath() string

func (*File) Delete

func (f *File) Delete() bool

func (*File) DeleteOnExit added in v0.7.6

func (f *File) DeleteOnExit()

DeleteOnExit accepts Java's lifecycle hint. Gobb processes are short-lived and do not expose a JVM-style shutdown-hook registry, so this is best-effort.

func (*File) Exists

func (f *File) Exists() bool

func (*File) GetAbsoluteFile

func (f *File) GetAbsoluteFile() *File

func (*File) GetAbsolutePath

func (f *File) GetAbsolutePath() string

func (*File) GetCanonicalFile

func (f *File) GetCanonicalFile() *File

func (*File) GetCanonicalPath

func (f *File) GetCanonicalPath() string

func (*File) GetName

func (f *File) GetName() string

func (*File) GetParent

func (f *File) GetParent() string

func (*File) GetParentFile added in v0.7.5

func (f *File) GetParentFile() *File

func (*File) GetPath

func (f *File) GetPath() string

func (*File) IsAbsolute added in v0.7.6

func (f *File) IsAbsolute() bool

func (*File) IsDirectory

func (f *File) IsDirectory() bool

func (*File) IsFile

func (f *File) IsFile() bool

func (*File) LastModified

func (f *File) LastModified() int64

func (*File) Length

func (f *File) Length() int64

func (*File) List

func (f *File) List() []string

func (*File) ListFiles added in v0.7.5

func (f *File) ListFiles() []*File

func (*File) Mkdir

func (f *File) Mkdir() bool

func (*File) Mkdirs

func (f *File) Mkdirs() bool

func (*File) Name

func (f *File) Name() string

func (*File) Parent

func (f *File) Parent() string

func (*File) ParentFile added in v0.7.5

func (f *File) ParentFile() *File

func (*File) Path

func (f *File) Path() string

func (*File) ResolveFieldOrMethod added in v0.7.6

func (f *File) ResolveFieldOrMethod(name string) (any, bool)

func (*File) String

func (f *File) String() string

func (*File) ToPath

func (f *File) ToPath() *Path

func (*File) ToString

func (f *File) ToString() string

type Files

type Files struct{}

type Path

type Path struct{ Pathname string }

func (*Path) FileName

func (p *Path) FileName() *Path

func (*Path) GetFileName

func (p *Path) GetFileName() *Path

func (*Path) GetParent

func (p *Path) GetParent() *Path

func (*Path) IsAbsolute

func (p *Path) IsAbsolute() bool

func (*Path) Normalize

func (p *Path) Normalize() *Path

func (*Path) Parent

func (p *Path) Parent() *Path

func (*Path) Resolve

func (p *Path) Resolve(other any) *Path

func (*Path) String

func (p *Path) String() string

func (*Path) ToAbsolutePath

func (p *Path) ToAbsolutePath() *Path

func (*Path) ToFile

func (p *Path) ToFile() *File

func (*Path) ToString

func (p *Path) ToString() string

type Paths

type Paths struct{}

Jump to

Keyboard shortcuts

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