blob: 690ac4ac2f0d4f13441d0fee3dc61a89085aeab3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
package steam
import (
"git.riedstra.us/mitch/steam-export/archive"
"os"
)
func (l *Library) PackageGame(g string) error {
working_dir, err := os.Getwd()
if err != nil {
return err
}
output := working_dir + "/" + g + ".tar"
os.Chdir(l.Folder + common)
input := g
a := archive.Archive{Output: output, Input: input}
err = a.Tar()
if err != nil {
return err
}
os.Chdir(working_dir)
return nil
}
|