Skip to content

Commit

Permalink
* Make download by default to download to download/$SYMBOL/$YEAR/$MON…
Browse files Browse the repository at this point in the history
…TH/$DATE/ instead of $SYMBOL/$YEAR/$MONTH/$DATE
  • Loading branch information
edward-yakop committed Dec 29, 2020
1 parent 1f1ab33 commit 0627799
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ output*
debug/
test/
MQL4/
download
go-duka
go-duka.exe
2 changes: 1 addition & 1 deletion internal/bi5/bi5.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type Bi5 struct {
// New create an bi5 saver
func New(day time.Time, symbol, dest string) *Bi5 {
y, m, d := day.Date()
dir := fmt.Sprintf("%s/%04d/%02d/%02d", symbol, y, m, d)
dir := fmt.Sprintf("download/%s/%04d/%02d/%02d", symbol, y, m, d)

return &Bi5{
dest: filepath.Join(dest, dir),
Expand Down

0 comments on commit 0627799

Please sign in to comment.