sync: Expose GetFile and GetFileContent functions

This commit is contained in:
nemunaire 2022-05-24 21:52:58 +02:00
commit 560110ba5e
6 changed files with 21 additions and 21 deletions

View file

@ -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
}