Documentation
¶
Overview ¶
Package fslib project contains a collection of packages to parse file systems, archives and similar data. The included packages can be used to access disk images of with different partitioning and file systems. Additionally, file systems for live access to the currently mounted file system and registry (on Windows) are implemented.
Example ¶
package main import ( "fmt" "io/fs" "os" "github.com/forensicanalysis/fslib/ntfs" ) func main() { // Read the root directory on an NTFS disk image. // open the disk image image, _ := os.Open("testdata/filesystem/ntfs.dd") // parse the file system fsys, _ := ntfs.New(image) // get filenames entries, _ := fs.ReadDir(fsys, ".") var filenames []string for _, entry := range entries { filenames = append(filenames, entry.Name()) } // print filenames fmt.Println(filenames) }
Output: [$AttrDef $BadClus $Bitmap $Boot $Extend $LogFile $MFT $MFTMirr $Secure $UpCase $Volume README.md container document evidence.json folder image]
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DirEntries ¶ added in v0.15.0
Types ¶
Directories
¶
Path | Synopsis |
---|---|
Package bufferfs provides a fs.FS wrapper for other fs.FS with a fs.File that implements io.Seeker and io.ReaderAt.
|
Package bufferfs provides a fs.FS wrapper for other fs.FS with a fs.File that implements io.Seeker and io.ReaderAt. |
Package fallbackfs implements a meta filesystem that wraps a sequence of file systems.
|
Package fallbackfs implements a meta filesystem that wraps a sequence of file systems. |
Package fat16 provides an io/fs implementation of the FAT16 file systems.
|
Package fat16 provides an io/fs implementation of the FAT16 file systems. |
Package fsio provides IO interfaces and functions similar for file system operations.
|
Package fsio provides IO interfaces and functions similar for file system operations. |
Package fstest provides functions for testing implementations of the io/fs.
|
Package fstest provides functions for testing implementations of the io/fs. |
Package gpt provides an io/fs implementation of the GUID partition table (GPT).
|
Package gpt provides an io/fs implementation of the GUID partition table (GPT). |
Package mbr provides an io/fs implementation of the Master Boot Record (MBR) partition table.
|
Package mbr provides an io/fs implementation of the Master Boot Record (MBR) partition table. |
Package ntfs provides an io/fs implementation of the New Technology File System (NTFS).
|
Package ntfs provides an io/fs implementation of the New Technology File System (NTFS). |
Package osfs provides an io/fs implementation of the native OS file system.
|
Package osfs provides an io/fs implementation of the native OS file system. |
Package registryfs provides an io/fs implementation to access the Windows Registry.
|
Package registryfs provides an io/fs implementation to access the Windows Registry. |
replace
|
|
context
Package context provides an simple replacement for the standard library context for older Go versions.
|
Package context provides an simple replacement for the standard library context for older Go versions. |
Package systemfs provides an io/fs implementation that uses the osfs as default, while a ntfs for every partition as a fallback on Windows, on UNIX the behavior is the same as osfs.
|
Package systemfs provides an io/fs implementation that uses the osfs as default, while a ntfs for every partition as a fallback on Windows, on UNIX the behavior is the same as osfs. |
Click to show internal directories.
Click to hide internal directories.