schollz / croc

Easily and securely send things from one computer to another :crocodile: :package:
https://schollz.com/software/croc6
MIT License
27.75k stars 1.1k forks source link

Avoid to create config dir if not required #686

Closed a1lu closed 6 months ago

a1lu commented 6 months ago

The config directory must only exist if --remember is set.

Otherwise croc only tries to read the config file on the returned path, that already could be "" if utils.GetConfigDir() returns an error and if the config file does not exist during read, errors are already silently ignored.

Edit: should fix https://github.com/schollz/croc/issues/681

schollz commented 6 months ago

perfect, thanks!