diff options
Diffstat (limited to 'fetcher.go')
-rw-r--r-- | fetcher.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -24,11 +24,15 @@ package rhimport +import ( + "path" +) + func FetchFile(ctx *ImportContext) (err error) { // TODO: fetch file from ctx.SourceUri and put it into ctx.Config.TempDir - ctx.SourceFile = ctx.Config.TempDir + "/source-file.ogg" + ctx.SourceFile = ctx.Config.TempDir + "/" + path.Base(ctx.SourceUri) ctx.DeleteSourceFile = true return } |