Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If there is no directory on the first pull, an error occurs. #1

Closed
d-tsuji opened this issue Apr 27, 2020 · 1 comment · Fixed by #2
Closed

If there is no directory on the first pull, an error occurs. #1

d-tsuji opened this issue Apr 27, 2020 · 1 comment · Fixed by #2

Comments

@d-tsuji
Copy link
Owner

d-tsuji commented Apr 27, 2020

config 設定して、pullを初回実行時に ❯ qiisync pull error dirwalk []: read dir: open ./testdata/output: no such file or directory エラーが出ていました!

@d-tsuji
Copy link
Owner Author

d-tsuji commented Apr 27, 2020

base_dir 配下のローカルのファイルを dirwalk する際にディレクトリがないとエラーになるため、以下の実装を含める。

err := os.MkdirAll(dir, 0755)
if err != nil {
	return err
}

@d-tsuji d-tsuji changed the title 初回pull時にディレクトリがない場合にエラーになる If there is no directory on the first pull, an error occurs. May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant