It's done a few lines below with ```directory fs_params["directory"] do``` so you shouldn't have any race with that.