ntfs

package
v0.0.0-...-b284882 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package ntfs implements read-only NTFS filesystem support.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(r io.ReaderAt, size int64) (fsys.FS, error)

Open opens an NTFS filesystem from the given reader

Types

type FS

type FS struct {
	// contains filtered or unexported fields
}

FS implements a read-only NTFS filesystem

func (*FS) BaseReader

func (f *FS) BaseReader() io.ReaderAt

func (*FS) Close

func (f *FS) Close() error

func (*FS) FileExtents

func (f *FS) FileExtents(name string) ([]fsys.Extent, error)

FileExtents returns the physical extents for a file

func (*FS) FreeBlocks

func (f *FS) FreeBlocks() ([]fsys.Range, error)

FreeBlocks returns the list of free byte ranges in the NTFS filesystem. Free clusters are identified by 0 bits in the $Bitmap file.

func (*FS) Open

func (f *FS) Open(name string) (fs.File, error)

func (*FS) ReadDir

func (f *FS) ReadDir(name string) ([]fs.DirEntry, error)

func (*FS) Stat

func (f *FS) Stat(name string) (fs.FileInfo, error)

func (*FS) Type

func (f *FS) Type() string

Jump to

Keyboard shortcuts

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