Skip to content

Commit

Permalink
fix: use local directory instead of system temp one
Browse files Browse the repository at this point in the history
  • Loading branch information
ex3ndr committed Mar 25, 2024
1 parent 2005dd3 commit 0bd2ed1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/resolver/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func Sync(src project.ProjectFile) {
func doSync(src project.ProjectFile) error {

// Create datasets directory if not exists
err := os.MkdirAll("external_datasets", 0755)
err := os.MkdirAll(filepath.Join("external_datasets", ".downloads"), 0755)
if err != nil {
return err
}
Expand All @@ -45,7 +45,7 @@ func doSync(src project.ProjectFile) error {
fmt.Println(utils.Faint("[2/3]") + " 🚚 Fetching datasets...")

// Create temporary directory
tempDir, err := os.MkdirTemp("", "datasets-")
tempDir, err := os.MkdirTemp(filepath.Join("external_datasets", ".downloads"), "datasets-")
if err != nil {
return err
}
Expand Down

0 comments on commit 0bd2ed1

Please sign in to comment.