mapping between list and filesystem for R