store fragment files to shared dir if shared is set.