diff --git a/file.go b/file.go index 200485d..ae2303f 100644 --- a/file.go +++ b/file.go @@ -17,6 +17,11 @@ type File struct { isdir bool } +// Path returns the full path of a file +func (f File) Path() string { + return f.path +} + // Name returns the name of a file func (f File) Name() string { return f.name