diff options
author | Christian Pointner <equinox@helsinki.at> | 2015-12-08 10:50:37 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2015-12-08 10:50:37 (GMT) |
commit | a6b29b342a73582a7f02877dda648d8d7a44ec57 (patch) | |
tree | 6d782f9e2e23040f79dadf9af7e5a54154573045 /src/helsinki.at/rhimport/fetcher.go | |
parent | abff4760fe4aede34b60fbefc8f398ad2370304e (diff) |
import_file should be done
Diffstat (limited to 'src/helsinki.at/rhimport/fetcher.go')
-rw-r--r-- | src/helsinki.at/rhimport/fetcher.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/helsinki.at/rhimport/fetcher.go b/src/helsinki.at/rhimport/fetcher.go index 1a5801b..97fe7ff 100644 --- a/src/helsinki.at/rhimport/fetcher.go +++ b/src/helsinki.at/rhimport/fetcher.go @@ -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 } |