Skip to content

mogaika/udf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Udf filesystem golang library

  • Non-optimized
  • Some functioal is broken
  • recovery() style error handling interface
  • Work only with certain iso's

It's all because I has reached requried functional for me.

Example

package main

import (
	"fmt"
	"os"
	"github.com/mogaika/udf"
)

func main() {
	r, _ := os.Open("example.iso")
	u := udf.NewUdfFromReader(r)
	for _, f := range u.ReadDir(nil) {
		fmt.Printf("%s %-10d %-20s %v\n", f.Mode().String(), f.Size(), f.Name(), f.ModTime())
	}
}

Output:

-r-xr-xr-x 57         system.cnf           2006-02-11 00:00:00 +0000 UTC
-r-xr-xr-x 1911580    SCUS_973.99          2006-03-15 00:00:00 +0000 UTC
-r-xr-xr-x 278305     ioprp300.img         2005-11-14 00:00:00 +0000 UTC
-r-xr-xr-x 6641       sio2man.irx          2005-10-18 00:00:00 +0000 UTC
-r-xr-xr-x 15653      dbcman.irx           2005-10-18 00:00:00 +0000 UTC

About

Udf filesystem read-only golang library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages