appdata does one thing - gives you operating system specific data directories that your application can write to.
It is taken from btcutil.