Random saving in tmp files. Whole path is conserved to deal with folders