No a god idea just to append an extension, there is no guarantee that the user can not publish a file with the same path. Maybe put the metadata in a different location, or make the extension something more cryptic ak: '.~metadata~' and not allow files with this kind of extension.