Commit bb7f8a9d authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Clear out examplelib directory.

parent 842bb1b0
# Use "gomake install" to build and install this package.
include $(GOROOT)/src/Make.inc
TARG=github.com/hanwen/go-fuse/examplelib
DEPS=../fuse
GOFILES=stackfs.go \
zipfs.go \
multizip.go \
misc.go
include $(GOROOT)/src/Make.pkg
package examplelib
import (
"fmt"
"os"
)
////////////////
func IsDir(name string) bool {
fi, _ := os.Lstat(name)
return fi != nil && fi.IsDirectory()
}
func IsFile(name string) bool {
fi, _ := os.Lstat(name)
return fi != nil && fi.IsRegular()
}
func FileExists(name string) bool {
_, err := os.Lstat(name)
return err == nil
}
func CheckSuccess(e os.Error) {
if e != nil {
panic(fmt.Sprintf("Unexpected error: %v", e))
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment