sync: Expose GetFile and GetFileContent functions
This commit is contained in:
parent
d24b1c5d4d
commit
560110ba5e
6 changed files with 21 additions and 21 deletions
|
|
@ -88,7 +88,7 @@ func (t *imageImporterTransformer) Transform(doc *ast.Document, reader text.Read
|
|||
} else {
|
||||
defer fdto.Close()
|
||||
writer := bufio.NewWriter(fdto)
|
||||
if err := getFile(t.importer, path.Join(t.rootDir, iPath), writer); err != nil {
|
||||
if err := GetFile(t.importer, path.Join(t.rootDir, iPath), writer); err != nil {
|
||||
os.Remove(dPath)
|
||||
return ast.WalkStop, err
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue