16 lines
309 B
Go
16 lines
309 B
Go
|
package webfilesystem
|
||
|
|
||
|
func (fs *WebFileSystem) Read(filePath string, fileData interface{}) (*FileHeader, error) {
|
||
|
fileId, err := fs.FindFile(filePath)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
|
||
|
fileHeader, err := fs.readFSDocs(fileId, fileData)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
|
||
|
return fileHeader, nil
|
||
|
}
|