There is a TODO tag in this function to properly manage file metadata. For this issue to be properly addressed metadata to handle need to be precised