forked from mirror/pkger
nothing is how he feels
This commit is contained in:
parent
29b463b420
commit
e45df3e5ac
|
@ -418,18 +418,10 @@ func (s Suite) Test_Stat_File(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func (s Suite) Test_Walk(t *testing.T) {
|
||||
panic("not implemented")
|
||||
}
|
||||
|
||||
func (s Suite) Test_Remove(t *testing.T) {
|
||||
panic("not implemented")
|
||||
}
|
||||
|
||||
func (s Suite) Test_HTTP_Open(t *testing.T) {
|
||||
panic("not implemented")
|
||||
}
|
||||
|
||||
func (s Suite) Test_HTTP_Readdir(t *testing.T) {
|
||||
panic("not implemented")
|
||||
}
|
||||
// func (s Suite) Test_Walk(t *testing.T) {
|
||||
// panic("not implemented")
|
||||
// }
|
||||
//
|
||||
// func (s Suite) Test_Remove(t *testing.T) {
|
||||
// panic("not implemented")
|
||||
// }
|
||||
|
|
|
@ -20,18 +20,6 @@ type Pkger struct {
|
|||
current here.Info
|
||||
}
|
||||
|
||||
func (p *Pkger) OpenFile(name string, flag int, perm os.FileMode) (pkging.File, error) {
|
||||
name, err := p.Abs(name)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
f, err := os.OpenFile(name, flag, perm)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return NewFile(p, f)
|
||||
}
|
||||
|
||||
func (f *Pkger) Abs(p string) (string, error) {
|
||||
pt, err := f.Parse(p)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue